quirky-token (npm) · Malicious Code
Affects quirky-tokenSource GCVE Database
Malicious package : remove quirky-token and rotate any secrets on hosts that installed it.
Data as of 12 Jul 2026, 11:55 UTC
Malicious package
Published to npm · OSV MAL-2026-6066
What to do
Remove quirky-token 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 |
|---|---|---|
| npmquirky-token | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The quirky-token npm package contains malicious code hidden behind an undocumented export named getPlugin(). This function fetches JSON data from a mutable third-party paste service and executes the 'model' field using eval(), enabling arbitrary code execution. The package masquerades as an SVG sanitizer but silently swallows errors, concealing its malicious behavior. Any system importing this package and invoking getPlugin() is at risk of full remote code execution by whoever controls the paste. The affected versions are from 1.0.0 through 1.0.2. Removal of the package is recommended, but full system compromise is possible, so all secrets should be rotated.