Malicious code in paper-password-input (npm)
Description
The npm package 'paper-password-input' version 45.0.0 contains malicious code due to a dependency confusion attack. The package.json declares a dependency with the same name as the package pointing to an external URL instead of a versioned registry, allowing arbitrary code execution during installation. Installing this package can lead to full system compromise, requiring immediate secret and key rotation and package removal.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The 'paper-password-input' npm package version 45.0.0 declares a dependency whose key matches the package's own name and whose value is a bare HTTPS URL (https://repo.securityctrl.com/paper-password-input) rather than a version range from the npm registry. When npm installs this package, it fetches and executes any lifecycle scripts from the tarball served at that URL without version pinning or integrity checks. The shipped index.js is inert, making the manifest and dependency declaration the attack surface. This setup enables whoever controls the external URL to deliver arbitrary code to all installers, consistent with a dependency confusion attack targeting an internal package name. The package is considered fully malicious, and any system with it installed should be treated as compromised.
Potential Impact
Systems with 'paper-password-input' version 45.0.0 installed are fully compromised. Attackers controlling the external URL can execute arbitrary code during installation, potentially gaining full control of the affected system. All secrets and keys stored on the compromised system should be rotated immediately from a secure environment. Removing the package alone may not eliminate all malicious software introduced by the compromise.
Mitigation Recommendations
Remove the 'paper-password-input' package version 45.0.0 immediately from all affected systems. Rotate all secrets and keys stored on compromised machines from a different, secure computer. Because the package allows arbitrary code execution during installation, assume full system compromise and perform a thorough incident response. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for any updates or official fixes.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15542
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a92f7e3acd9273b49e75cc9
Added to database: 08/29/2026, 15:16:51 UTC
Last enriched: 09/09/2026, 20:53:43 UTC
Last updated: 10/01/2026, 22:27:16 UTC
Views: 24
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.