MAL-2026-10132: Malicious code in react-jsonwebtoken (npm)
The react-jsonwebtoken npm package impersonates the popular jsonwebtoken library and includes malicious code that executes remote code on the host machine. When required, it fetches JavaScript code from a remote anonymous paste service and executes it with full Node.js privileges, enabling a supply-chain attack. The malicious behavior is obfuscated and disguised behind benign function names and author metadata. This affects specific versions 9.0.3, 9.0.4, and 9.0.5 of react-jsonwebtoken.
AI Analysis
Technical Summary
The react-jsonwebtoken package, which mimics the widely-used jsonwebtoken library and falsely claims 'auth0' as author, contains a require-time remote code execution backdoor. Upon loading, it calls a helper function that performs an HTTPS GET request to a mutable anonymous paste endpoint, retrieves JavaScript code, and executes it using indirect Function construction with access to the host's require function. This grants the remote code full Node.js capabilities on the consumer's machine. The attack leverages impersonation and obfuscation to evade detection, constituting a clear supply-chain compromise in versions 9.0.3, 9.0.4, and 9.0.5 of react-jsonwebtoken.
Potential Impact
Any system that installs and requires the affected versions of react-jsonwebtoken will execute arbitrary remote code with full Node.js privileges, potentially leading to complete system compromise. The malicious code is loaded silently at require-time, enabling attackers to run any code on the host environment without user consent or awareness.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately stop using react-jsonwebtoken versions 9.0.3, 9.0.4, and 9.0.5. Remove the package from all projects and dependency trees. Verify that no malicious code has been executed or persisted on affected systems. Prefer the legitimate jsonwebtoken package from trusted sources. Monitor vendor advisories for updates or official fixes.
MAL-2026-10132: Malicious code in react-jsonwebtoken (npm)
Description
The react-jsonwebtoken npm package impersonates the popular jsonwebtoken library and includes malicious code that executes remote code on the host machine. When required, it fetches JavaScript code from a remote anonymous paste service and executes it with full Node.js privileges, enabling a supply-chain attack. The malicious behavior is obfuscated and disguised behind benign function names and author metadata. This affects specific versions 9.0.3, 9.0.4, and 9.0.5 of react-jsonwebtoken.
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 react-jsonwebtoken package, which mimics the widely-used jsonwebtoken library and falsely claims 'auth0' as author, contains a require-time remote code execution backdoor. Upon loading, it calls a helper function that performs an HTTPS GET request to a mutable anonymous paste endpoint, retrieves JavaScript code, and executes it using indirect Function construction with access to the host's require function. This grants the remote code full Node.js capabilities on the consumer's machine. The attack leverages impersonation and obfuscation to evade detection, constituting a clear supply-chain compromise in versions 9.0.3, 9.0.4, and 9.0.5 of react-jsonwebtoken.
Potential Impact
Any system that installs and requires the affected versions of react-jsonwebtoken will execute arbitrary remote code with full Node.js privileges, potentially leading to complete system compromise. The malicious code is loaded silently at require-time, enabling attackers to run any code on the host environment without user consent or awareness.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately stop using react-jsonwebtoken versions 9.0.3, 9.0.4, and 9.0.5. Remove the package from all projects and dependency trees. Verify that no malicious code has been executed or persisted on affected systems. Prefer the legitimate jsonwebtoken package from trusted sources. Monitor vendor advisories for updates or official fixes.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10132
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a520edf68715ace439174db
Added to database: 07/11/2026, 09:37:35 UTC
Last enriched: 07/11/2026, 10:05:40 UTC
Last updated: 07/12/2026, 03:33:17 UTC
Views: 6
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.