CVE-2026-145650: pnpm from 12.0.0 before 12.10.0 Path Traversal via Global Virtual Store Version

Published Dec 6, 2026
·
Updated

pnpm from 12.0.0 before 12.10.0 contains a path traversal vulnerability that allows malicious dependencies to write files outside the store via a crafted manifest version string. When enable-global-virtual-store is enabled, fresh or resolving installs build slot paths from the unvalidated version, letting attackers overwrite files such as git hooks for code execution.

Affected Software

1 affected component
npm/pnpm>=12.0.0<12.10.0

Event History

Dec 6, 2026
CVE Published
via MITRE·12:16 AM
Data Sourced
via MITRE·12:16 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:18 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which installations are exposed?

pnpm installations from 12.0.0 before 12.10.0 are affected when enable-global-virtual-store is enabled. The vulnerable path construction occurs during fresh or resolving installs.

2

What does an attacker need to exploit this?

An attacker needs a malicious dependency whose manifest contains a crafted version string. No privileges or user interaction are required according to the supplied vector.

3

What is the practical impact of a successful exploit?

A malicious dependency can write files outside the pnpm store through path traversal. The described impact includes overwriting Git hooks, which can lead to code execution.

4

What can be done if upgrading is not immediately possible?

Disable enable-global-virtual-store and avoid fresh or resolving installs involving untrusted dependencies until an upgrade is possible.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203