path-internal-util
Affected
- introduced
0(semver) - introduced
1.0.0, last affected1.0.2(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-c267-q765-387r
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in path-internal-util (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (aaba59a63a7a6f3dfc734a55082dff17dbf357f41b2a09ef0c87f73d046088e1)
On require(), path.js executes an IIFE that calls loadTokenData(), which fetches a base64-obfuscated URL (decoding to https://www.jsonkeeper.com/b/CWOV9), parses the JSON response, and passes data.content directly to eval(). The remote paste is mutable by whoever controls the jsonkeeper entry, so any installer that imports the package executes arbitrary attacker-controlled JavaScript in-process at import time. The package name impersonates Node's built-in path module and the README claims to be 'an exact copy of the NodeJS path module', increasing the chance of accidental installation by developers seeking a path polyfill.
Source: ghsa-malware (256c0d663976ed956c5fde6343acb9a6e640443a0091911fd4a2a57ab49e14f3)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Source: ossf-package-analysis (db91c8a40ff204e2aa98c594413d69b624d93a4ac51ea09fc00b1d3f63b8e462)
The OpenSSF Package Analysis project identified 'path-internal-util' @ 1.0.1 (npm) as malicious.
It is considered malicious because:
Not rated by the source.
0 (semver)1.0.0, last affected 1.0.2 (semver)None 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