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…

MAL-2026-10098: Malicious code in fastify-addone (npm)

0
Critical
Published: 07/09/2026 (07/09/2026, 22:16:42 UTC)
Source: GCVE Database
Product: fastify-addone

Description

The fastify-addone npm package version 5.1.0 contains malicious code that executes attacker-controlled JavaScript when the package is required. It masquerades as the legitimate fastify-plugin package but includes a top-level script that decodes a base64 URL, fetches JSON from a third-party service, and evaluates its content, enabling remote code execution in the user's environment.

Affected software

npmghsa
fastify-addone
Affected versions
=5.1.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/10/2026, 09:41:59 UTC

Technical Analysis

The fastify-addone package (version 5.1.0) impersonates the legitimate fastify-plugin package by copying its source code but injecting a malicious top-level statement in lib/getPluginName.js. This statement base64-decodes a URL, fetches JSON data from an anonymous third-party JSON hosting service, and executes the 'content' field via eval. This results in arbitrary attacker-controlled JavaScript execution in any process that requires fastify-addone, either directly or indirectly. The payload URL is obfuscated using base64 encoding to evade casual inspection. No patch or remediation information is provided.

Potential Impact

Any environment that installs and requires fastify-addone version 5.1.0 is at risk of remote code execution by an attacker controlling the JSON payload. This can lead to full compromise of the host running the Node.js process, including data theft, system manipulation, or further malware deployment. The malicious code executes with the privileges of the Node.js process, posing a critical security risk.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should immediately remove the fastify-addone package version 5.1.0 from their projects and replace it with the legitimate fastify-plugin package from a trusted source. Avoid installing or requiring fastify-addone. Monitor dependencies for supply chain compromises and verify package authenticity before use. Patch status is not yet confirmed — check the vendor advisory or npm security advisories 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-10098
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a50ba5668715ace4357ee95

Added to database: 07/10/2026, 09:24:38 UTC

Last enriched: 07/10/2026, 09:41:59 UTC

Last updated: 07/10/2026, 09:41:59 UTC

Views: 3

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