CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2026 · Pnpm

CVE-2026-24131
Pnpm vulnerability

pnpm is a package manager. Prior to version 10.28.2, when pnpm processes a package's `directories.bin` field, it uses `path.join()` without validating the result stays within the package root. A malicious npm package can specify `"directories": {"bin": "../../../../tmp"}` to escape the package directory, causing pnpm to chmod 755 files at arbitrary locations. This issue only affects Unix/Linux/macOS. Windows is not affected (`fixBin` gated by `EXECUTABLE_SHEBANG_SUPPORTED`). Version 10.28.2 contains a patch.

Affected products

Pnpm. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Pnpm runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Set the orderSystems that can be reached from the internet come first, then the rest.

References

More vulnerabilities in Pnpm products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.