Back

CRITICAL

pnpm v10+ Bypass "Dependency lifecycle scripts execution disabled by default"

Published Jan 7, 2026

Description

pnpm is a package manager. Versions 10.0.0 through 10.25 allow git-hosted dependencies to execute arbitrary code during pnpm install, circumventing the v10 security feature "Dependency lifecycle scripts execution disabled by default". While pnpm v10 blocks postinstall scripts via the onlyBuiltDependencies mechanism, git dependencies can still execute prepare, prepublish, and prepack scripts during the fetch phase, enabling remote code execution without user consent or approval. This issue is fixed in version 10.26.0.

Affected products

Remediation

Red Hat mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Weaknesses (1)

References (9)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner GitHub_M
Published Jan 7, 2026
Updated Sep 14, 2026
Reserved Dec 31, 2025
CISA Vulnrichment
Updated Jan 9, 2026
NVD
Status Modified
Modified Jul 15, 2026
Red Hat
Severity Important
Public date Jan 7, 2026
ENISA EUVD
Assigner GitHub_M
Published Jan 7, 2026
Updated Sep 14, 2026
Exploited since n/a
EUVD-2026-1189 GHSA-379Q-355J-W6RJ