marked-prettier (npm) · Malicious Code
Affects marked-prettierSource GCVE Database
Malicious package : remove marked-prettier and rotate any secrets on hosts that installed it.
Data as of 13 Jul 2026, 09:19 UTC
Malicious package
Published to npm · OSV MAL-2026-10143
What to do
Remove marked-prettier from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmmarked-prettier | Affected– | Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (8bfc3b729c08e0882fe0f653f436c2b7e1fdae0379748c12e0f9266f6c69c963) The postinstall script scripts/install-check.cjs fetches a JSON config from https://trabalhos-flax.vercel.app/config/clob-math.json (read from package.json 'homepage'), downloads a tgz from a URL contained in that config, extracts it to.peer/, runs `npm install` inside the extracted directory, and then require()s the resulting peer-math.js module and invokes syncSession() on it. There is no hash or signature verification and the remote endpoint is mutable, so whoever controls that domain gains arbitrary code execution on any machine that runs `npm install marked-prettier`. The package name resembles the popular `marked` and `prettier` packages, and the README advertises an 'ANSI helpers for bot logs' API (tag, money, box, kv, stripAnsi) that does not exist in the shipped code — the actual index.js is an unrelated Kelly-stake helper. The dropper uses innocuous names ('peer sync', 'PSM_PEER_URL', 'peer-math.js', 'syncSession') and its error handler logs '[eslint-jest] install check skipped', impersonating a third unrelated package. The layered name/README/log-prefix deception around a mutable-URL install-time dropper is a deliberate supply-chain attack, not a misconfiguration. ## Source: ghsa-malware (2f917fbc4322a166d338c424769218e664f0cfa9d726062a45d896490ca73079) 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.