Why PNPM broke my website to prevent credential leakage
Why PNPM broke my website to prevent credential leakage
Why pnpm No Longer Expands Environment Variables in a Repository’s .npmrc, by @kochan.io (@pnpm):
https://pnpm.io/blog/2026/06/11/env-variables-in-repository-npmrc?ref=frontenddogma.com

pnpm used to expand $ placeholders everywhere it found them — including in the .npmrc and pnpm-workspace.yaml files that live inside the repository you just cloned. That turned out to be a way for a malicious repository to steal the secrets in your environment. As of v10.34.2 and v11.5.3, pnpm stops expanding environment variables in repository-controlled registry and credential settings.
📦 Package coverage is broad: npm (#pnpm, #yarn, #bun), #PyPI, #Go modules, #RubyGems, #Composer. Reads lockfiles & install metadata — no package-manager execution, no source-file reads. Zero network calls during scans.
🔌 Also scans #MCP server configs (claude_desktop_config.json, mcp.json, Gemini CLI settings) and editor extensions for VS Code, Cursor, Windsurf, VSCodium — plus Chromium & Firefox browser extensions.
whenever there’s another #npm #supplychain attack, it’s time to start victim-blaming. unironically. don’t use npm, use #pnpm (or #bun).
pnpm stores your packages in a single central repository instead of downloading them all every time, and it also doesn’t run build scripts by default unless you ask it to. plus, it’s faster, but that’s less important.
if you use plain npm, you’re not a victim, you’re a perpetrator.
[ERR_PNPM_IGNORED_BUILDS] Ignored build scripts: @parcel/[email protected], [email protected], [email protected], [email protected]
Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts.this vibe coded PR with 1,000,000+ additions is just open-source ransomware with prettier commit messages.
shoutout to the brave soul reviewing:
"LGTM" after skimming 14 lines… 🤡
uninstalling immediately!
NPM has been compromised, install PNPM without using NPM ! 🚨EN
NPM fue comprometido, instala PNPM sin usar NPM ! 🚨ES
#programming #coding #programación #code #webdevelopment #devs #softwaredevelopment #npm #pnpm