Skip to main content
MalwarePublished Updated

brat-codex (npm) · Malicious Code

Affects brat-codexSource GCVE Database

0

Malicious package : remove brat-codex and rotate any secrets on hosts that installed it.

Data as of 8 Sep 2026, 17:23 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-15580

What to do

Remove brat-codex 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

ProductAffectedFixed in
npmbrat-codexAffected–Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The npm package 'brat-codex' was found to contain malicious code or depends on a package with malicious code. Any system with this package installed should be considered fully compromised, and all secrets and keys stored on that system must be rotated immediately from a different machine. Removing the package alone may not fully eliminate the malicious presence due to potential full system compromise.

References

Community reviews

Loading reviews…