SharpCompress vulnerabilities

SharpCompress is a compression library for NET 4.8/NET Standard 2.0/NET Standard 2.1/NET 5.0/NET 6.0/NET 7.0/NET 8.0/NET 9.0/NET 10.0 that can unrar, decompress 7zip, decompress xz, zip/unzip, tar/untar lzip/unlzip, bzip2/unbzip2 and gzip/ungzip with forward-only reading and file random access APIs. Write support for zip/tar/bzip2/gzip/7zip is implemented.

Registry
NuGet
Latest
0.50.10
License
MIT

3 known advisories

The latest version, 0.50.10, is not affected by any of them. Projects on older versions may be.

Update to the latest version:dotnet add package SharpCompress --version 0.50.10

Is your project on an affected SharpCompress?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several .NET apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for SharpCompress

  • MediumCVE-2026-44788GHSA-6c8g-7p36-r3388 May 2026

    SharpCompress has directory traversal via directory entries in WriteToDirectory (zip slip variant)

    Affected
    <0.48.0
    Fixed in
    0.48.0
  • MediumCVE-2021-39208GHSA-jp7f-grcv-6mjf20 Sept 2021

    Partial path traversal in sharpcompress

    Affected
    <0.29
    Fixed in
    0.29
  • MediumCVE-2018-1002206GHSA-fxh6-w476-hgr411 Sept 2019

    Directory Traversal in SharpCompress

    Affected
    <0.21.0
    Fixed in
    0.21.0

Is your SharpCompress version vulnerable?

Which of your client projects still run an old SharpCompress?

NPMscan reads the packages.lock.json and .csproj files in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other NuGet packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the NuGet registry.