npm · Malicious package advisory
Malwarepaper-password-input
GHSA-g76m-37ph-2w5c
Malicious code in paper-password-input (npm)
Details
**Severity:** Critical **Affected versions:** `= 45.0.0` ## Source: amazon-inspector (a97853ce25938b0cc295a798fa8c9ae8ab513126e70b93084785636a91bc7ec4) package.json declares a dependency whose key equals the package's own name (paper-password-input) and whose value is a bare HTTPS URL, https://repo.securityctrl.com/paper-password-input, rather than a registry version range. On npm install, npm fetches whatever bytes are served at that URL with no version pin and no integrity check, and executes any lifecycle scripts inside the fetched tarball. The shipped index.js is an inert stub, so the manifest itself is the entire published surface — whoever controls repo.securityctrl.com can deliver arbitrary code to every installer, and the self-named dependency shape is consistent with a dependency-confusion lure targeting an internal package name. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/d75ebb673b0185a99abe46e9e4a60aaa467fa7d8/osv/malicious/npm/paper-password-input/MAL-2026-15542.json)) **References:** - https://github.com/ossf/malicious-packages/blob/d75ebb673b0185a99abe46e9e4a60aaa467fa7d8/osv/malicious/npm/paper-password-input/MAL-2026-15542.json - https://www.npmjs.com/package/paper-password-input/v/45.0.0 - https://github.com/advisories/GHSA-g76m-37ph-2w5c
Compromised versions (1)
- = 45.0.0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.