Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in quirky-token (npm)

0
Critical
Published: 06/17/2026 (06/17/2026, 16:37:40 UTC)
Source: GCVE Database
Product: quirky-token

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

npmghsa
quirky-token
Affected versions
=1.0.2=1.0.1=1.0.0

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

AILast updated: 07/12/2026, 11:55:24 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses