Advisory

MAL-2026-5845

Also known as: GHSA-q835-5j9v-22qg

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in prettier_v1 (npm)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (1ae1d77d25db3af85295c48a446f6c0f2f65252ea2483c45ce81df12c75b1fcb)
Package name 'prettier_v1' closely resembles the widely-used 'prettier' formatter package, a classic typosquat naming pattern. The file lib/mirror.js contains a Buffer.from(..., 'base64').toString('utf8') decode primitive at line 16, which is commonly used to obscure embedded payloads. Tracing of the decoded content and its downstream use (whether it is passed to eval/exec, written to disk, or executed) was not completed, so the actual installer-side impact has not been confirmed. The combination of a typosquat-shaped name plus a base64 decode in a file named 'mirror.js' warrants human review before this package is allowed into installer environments.

Source: ghsa-malware (ea8303f0cea5f415b8a0ba74e959d0501fcb3142ee9320fa50668674c578e4bb)
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.

Severity

Not rated by the source.

Dates

Published
2026-06-15 23:45 UTC
Modified
2026-09-01 11:31 UTC

Affected packages and fixes

prettier_v1

npm · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

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

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences