Malicious code in quirky-token (npm)
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.
AI Analysis
Technical Summary
quirky-token versions 1.0.0 through 1.0.2 include a malicious backdoor in an undocumented getPlugin() export. This export fetches JSON from https://www.jsonkeeper.com/b/3P9BF, an anonymous and mutable paste hosting service, and directly evaluates the 'model' field with JavaScript eval(). This allows an attacker controlling the paste to execute arbitrary code within the Node.js process of any consumer invoking getPlugin(). The package's main code appears as a legitimate SVG sanitizer, serving as cover. Error handling is intentionally silent, hiding failures and malicious activity. This classic dropper pattern enables full remote code execution on the host running the package. Due to the nature of the compromise, systems with this package installed should be considered fully compromised.
Potential Impact
Successful exploitation grants the attacker full remote code execution on the host running quirky-token when getPlugin() is called. This leads to complete system compromise, including potential access to all stored secrets and keys. Because the malicious code is fetched dynamically from a mutable external source, the attacker can change the payload at any time, maintaining persistent control. Removal of the package alone does not guarantee eradication of all malicious artifacts or backdoors introduced post-compromise.
Mitigation Recommendations
No official patch or fix is currently available. Users should immediately remove quirky-token versions 1.0.0 through 1.0.2 from their environments. All secrets, credentials, and keys on affected systems must be rotated from a secure, uncompromised machine. Given the high likelihood of full system compromise, consider rebuilding affected hosts from trusted sources. Monitor for any signs of persistent malicious activity. Patch status is not yet confirmed — check the vendor advisory or trusted sources for updates.
Malicious code in quirky-token (npm)
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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
quirky-token versions 1.0.0 through 1.0.2 include a malicious backdoor in an undocumented getPlugin() export. This export fetches JSON from https://www.jsonkeeper.com/b/3P9BF, an anonymous and mutable paste hosting service, and directly evaluates the 'model' field with JavaScript eval(). This allows an attacker controlling the paste to execute arbitrary code within the Node.js process of any consumer invoking getPlugin(). The package's main code appears as a legitimate SVG sanitizer, serving as cover. Error handling is intentionally silent, hiding failures and malicious activity. This classic dropper pattern enables full remote code execution on the host running the package. Due to the nature of the compromise, systems with this package installed should be considered fully compromised.
Potential Impact
Successful exploitation grants the attacker full remote code execution on the host running quirky-token when getPlugin() is called. This leads to complete system compromise, including potential access to all stored secrets and keys. Because the malicious code is fetched dynamically from a mutable external source, the attacker can change the payload at any time, maintaining persistent control. Removal of the package alone does not guarantee eradication of all malicious artifacts or backdoors introduced post-compromise.
Mitigation Recommendations
No official patch or fix is currently available. Users should immediately remove quirky-token versions 1.0.0 through 1.0.2 from their environments. All secrets, credentials, and keys on affected systems must be rotated from a secure, uncompromised machine. Given the high likelihood of full system compromise, consider rebuilding affected hosts from trusted sources. Monitor for any signs of persistent malicious activity. Patch status is not yet confirmed — check the vendor advisory or trusted sources for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6066
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-8p89-7m4q-45qm"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a42ed2327e9c79719933b19
Added to database: 06/29/2026, 22:09:39 UTC
Last enriched: 07/12/2026, 11:55:24 UTC
Last updated: 07/28/2026, 14:41:48 UTC
Views: 12
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.