Malicious code in wiwusen (npm)
- GHSA-gj8m-xhgr-f3gj
Description
wiwusen@2.0.0 ships a nested package under payload/ (dudovemek@2.0.0) whose package.json declares a prepare lifecycle script that runs node prep.js. On install, prep.js executes cp.execSync('id') to capture the installer's uid/gid/group output and writes it, along with a canary marker, into files under the installer's $HOME directory ($HOME/.npmjs-mirror-dfa-canary-* and $HOME/.npmjs-mirror-dfa-id-*) with mode 0o600, and emits a PAYLOAD-PREPARE-EXECUTED log line. This demonstrates arbitrary code execution and host-identity capture in the installer's account at install time without any user action. The top-level manifest also declares bundleDependencies: ["zzz-missing"] without shipping that dependency in the tarball, causing npm to resolve the name from the registry at install time and expand the install-time code surface to whatever that name resolves to. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/0730aa902aca078a6d9faa89bcf7b86fb9816157/osv/malicious/npm/wiwusen/MAL-2026-20423.json))
Text from the GitHub Advisory record.
Affected
wiwusennpm
- No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.