Malicious code in react-table-core (npm)
The npm package 'react-table-core' version 2.7.1 contains malicious code that executes arbitrary attacker-controlled commands on any machine that installs it. The package disguises an executable loader as a TypeScript declaration file and decrypts hidden ciphertext at install time, passing the decrypted code to eval. This package is a typosquatting attempt targeting the popular 'react-table' libraries, using misleading README content to lure users. There is no official patch or remediation information available.
AI Analysis
Technical Summary
The 'react-table-core' npm package (version 2.7.1) includes a malicious preinstall script disguised as a TypeScript declaration file ('index.d.js'). During 'npm install', this loader decrypts an AES-256-CBC ciphertext constructed from metadata fields in a configuration file using a hardcoded key and IV, then executes the decrypted code via eval. The use of obfuscation techniques such as splitting ciphertext across metadata fields, hiding the loader behind a '.d.js' extension, and reconstructing 'eval' from character codes indicates deliberate evasion. This package is a typosquatting attempt on the legitimate 'react-table' and '@tanstack/react-table' libraries, with mismatched README branding to mislead users. No patch or fix is currently documented.
Potential Impact
Any system that installs 'react-table-core' version 2.7.1 is subject to arbitrary code execution by the attacker, potentially compromising the host environment. This can lead to full system compromise, data theft, or further malware deployment. The malicious code executes automatically during package installation, increasing risk to developers and CI/CD pipelines that fetch this package.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package. Users should avoid installing 'react-table-core' version 2.7.1 and verify package authenticity before installation. Remove any installations of this package from projects and dependency trees. Use trusted package sources and consider implementing package integrity verification mechanisms such as checksums or signing. Monitor for and block typosquatting packages in your supply chain.
Malicious code in react-table-core (npm)
Description
The npm package 'react-table-core' version 2.7.1 contains malicious code that executes arbitrary attacker-controlled commands on any machine that installs it. The package disguises an executable loader as a TypeScript declaration file and decrypts hidden ciphertext at install time, passing the decrypted code to eval. This package is a typosquatting attempt targeting the popular 'react-table' libraries, using misleading README content to lure users. There is no official patch or remediation information available.
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-table-core' npm package (version 2.7.1) includes a malicious preinstall script disguised as a TypeScript declaration file ('index.d.js'). During 'npm install', this loader decrypts an AES-256-CBC ciphertext constructed from metadata fields in a configuration file using a hardcoded key and IV, then executes the decrypted code via eval. The use of obfuscation techniques such as splitting ciphertext across metadata fields, hiding the loader behind a '.d.js' extension, and reconstructing 'eval' from character codes indicates deliberate evasion. This package is a typosquatting attempt on the legitimate 'react-table' and '@tanstack/react-table' libraries, with mismatched README branding to mislead users. No patch or fix is currently documented.
Potential Impact
Any system that installs 'react-table-core' version 2.7.1 is subject to arbitrary code execution by the attacker, potentially compromising the host environment. This can lead to full system compromise, data theft, or further malware deployment. The malicious code executes automatically during package installation, increasing risk to developers and CI/CD pipelines that fetch this package.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package. Users should avoid installing 'react-table-core' version 2.7.1 and verify package authenticity before installation. Remove any installations of this package from projects and dependency trees. Use trusted package sources and consider implementing package integrity verification mechanisms such as checksums or signing. Monitor for and block typosquatting packages in your supply chain.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12425
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735745bf8831d539159f5c
Added to database: 08/05/2026, 15:31:17 UTC
Last enriched: 08/05/2026, 17:26:36 UTC
Last updated: 08/05/2026, 17:26:36 UTC
Views: 2
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.