본문으로 건너뛰기

"security" 태그로 연결된 1개 게시물개의 게시물이 있습니다.

View all tags

Why pnpm no longer expands environment variables in a repository's .npmrc

· 1분 소요
Zoltan Kochan
Lead maintainer of pnpm

pnpm used to expand ${ENV_VAR} 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.

This was a security fix (GHSA-3qhv-2rgh-x77r), and it is a breaking change for some setups. This post explains the attack, what exactly changed, and how to migrate.