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-10132: Malicious code in react-jsonwebtoken (npm)

0
Critical
Published: 07/10/2026 (07/10/2026, 16:16:01 UTC)
Source: GCVE Database
Product: react-jsonwebtoken

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

npmghsa
react-jsonwebtoken
Affected versions
=9.0.3=9.0.5=9.0.4

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/11/2026, 10:05:40 UTC

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.

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-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 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