MAL-2026-10098: Malicious code in fastify-addone (npm)
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.
AI Analysis
Technical Summary
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.
MAL-2026-10098: Malicious code in fastify-addone (npm)
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
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
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.
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 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.
External Links
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.