Advisory

GHSA-hwx4-2j3j-g496

Details, part 2 of 2. The advisory

Details

The script starts a local npm-compatible registry, writes a victim project .npmrc that points to that registry, installs [email protected] with --ignore-scripts, and then triggers git commit.

Requirements:

pnpm
npm
node
git
openssl

Expected output:

git commit exit code: 0
git commit stderr:
PWNED

PWNED is printed by the attacker-controlled pre-commit hook from the payload-hooks package.

Sources & licences