Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

npm/cli
latest @ 7e29a19
69
Fixes
12
CVEs
CRITICAL
Peak severity
51.5%
Coverage
Highlights
Information Disclosure: 16 prior fixes. Scrutinize any change in this area.
lib/utils/exec.js: most-fixed (4 issues). Treat as high-risk during review.
23 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Command Injection: Insecure argument escaping and command-line routing through cmd.exe/bash shells, particularly on Windows when executing lifecycle script files like .cmd or .bat, can lead to arbitrary code execution.
Auth Bypass: Default policies that automatically fetch and run untrusted external git repositories or remote tarballs bypass script execution restrictions unless strictly controlled.
Information Disclosure: Sensitive credential keys, passwords, and custom registry auth tokens are frequently printed in cleartext during configuration listing commands or leaked in verbose process logs.