Vulnerabilities / CVE-2023-37478

critical

CVE-2023-37478

pnpm incorrectly parses tar archives relative to specification

Published Modified CWE 284
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA7.5CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (high).

Description

pnpm is a package manager. It is possible to construct a tarball that, when installed via npm or parsed by the registry is safe, but when installed via pnpm is malicious, due to how pnpm parses tar archives. This can result in a package that appears safe on the npm registry or when installed via npm being replaced with a compromised or malicious version when installed via pnpm. This issue has been patched in version(s) 7.33.4 and 8.6.8.

Affected packages and fixed versions

SourcePackageFixed in
npm::GitHub Security Advisory npm@pnpm/cafs, @pnpm/exe, @pnpm/linux-arm64 and 6 more7.0.5 and 1 more
Show all 9 entries from 1 source
SourcePackageFixed in
npm::GitHub Security Advisory npm@pnpm/cafs7.0.5
npm::GitHub Security Advisory npm@pnpm/exe7.33.4, 8.6.8
npm::GitHub Security Advisory npm@pnpm/linux-arm647.33.4, 8.6.8
npm::GitHub Security Advisory npm@pnpm/linux-x647.33.4, 8.6.8
npm::GitHub Security Advisory npm@pnpm/linuxstatic-arm647.33.4, 8.6.8
npm::GitHub Security Advisory npm@pnpm/macos-arm647.33.4, 8.6.8
npm::GitHub Security Advisory npm@pnpm/macos-x647.33.4, 8.6.8
npm::GitHub Security Advisory npm@pnpm/win-x647.33.4, 8.6.8
npm::GitHub Security Advisory npmpnpm7.33.4, 8.6.8

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.