Malicious npm package token-layout-parser compromises developer machines (GHSA-j6vc-hrc4-j5xp)
Severity: critical · Patch status: no-fix-needed · Since 2026-12-01
GitHub's advisory database published a malware advisory for the npm package token-layout-parser on 2026-12-01. Every published version (= 0) is affected and no patched version exists; the package is classified as embedded malicious code (CWE-506). Any computer where the package was installed or run should be considered fully compromised, with control potentially handed to an outside actor. All secrets and keys on affected machines must be rotated from a clean computer. Removal of the package does not guarantee removal of the malicious software it may have installed. No CVE is assigned; the advisory carries no EPSS score and no known source code repository.
What to do
- Remove token-layout-parser from all projects and lockfiles and block it in dependency policies
- Rotate all secrets, keys, tokens and credentials stored on machines where it was installed, using a clean computer
- Rebuild/reimage affected machines and audit for persistence mechanisms
- Review CI/CD and build environments for exposure and rotate pipeline credentials
- Audit npm dependency trees for other typosquatted or malicious packages
Sources
All live incidents on Threat Watch