MAL-2026-6440: Malicious code in tokenization-util (npm)
The npm package 'tokenization-util' versions 0.2.0 and 1.1.0 contains a malicious backdoor hidden in the calculateTokenPrice function. The code is heavily obfuscated with visual padding and string-shuffling techniques to dynamically reconstruct and execute a payload that exposes Node.js built-in modules globally. This allows the payload to execute arbitrary code with full system access when the function is called. The malicious behavior is undocumented and concealed from users. Systems with this package installed should be considered fully compromised.
AI Analysis
Technical Summary
The 'tokenization-util' npm package (versions 0.2.0 and 1.1.0) includes a heavily obfuscated malicious payload concealed inside the calculateTokenPrice function. The payload uses approximately 1500 leading tab characters for visual concealment, then employs two seeded Fisher-Yates string-shuffler decoders and String.fromCharCode splicing to reconstruct critical identifiers such as 'constructor', 'require', and 'module' at runtime. It dynamically creates a Function constructor to decode and execute a second scrambled JavaScript blob. The code assigns CommonJS require and module bindings to the global object, granting the decoded payload unrestricted access to Node.js built-in modules including network, filesystem, and child process capabilities. This backdoor executes whenever calculateTokenPrice is invoked, providing a remote code execution vector hidden behind obfuscation and undocumented in the package's API or README.
Potential Impact
Any system with the affected versions of the 'tokenization-util' package installed or running is considered fully compromised. The malicious payload grants attackers full control over the host environment by exposing Node.js built-in modules globally and executing arbitrary code. This can lead to theft of secrets, keys, and other sensitive data. Removal of the package alone does not guarantee eradication of the compromise, as the attacker may have established persistent backdoors or additional malware.
Mitigation Recommendations
No official patch or fix is currently available. Immediate removal of the 'tokenization-util' package versions 0.2.0 and 1.1.0 is strongly recommended. All secrets, keys, and credentials stored on affected systems should be rotated from a trusted, uncompromised environment. Due to the high likelihood of full system compromise, a thorough incident response and forensic analysis should be conducted to identify and remediate any persistent threats beyond the malicious package itself.
MAL-2026-6440: Malicious code in tokenization-util (npm)
Description
The npm package 'tokenization-util' versions 0.2.0 and 1.1.0 contains a malicious backdoor hidden in the calculateTokenPrice function. The code is heavily obfuscated with visual padding and string-shuffling techniques to dynamically reconstruct and execute a payload that exposes Node.js built-in modules globally. This allows the payload to execute arbitrary code with full system access when the function is called. The malicious behavior is undocumented and concealed from users. Systems with this package installed should be considered fully compromised.
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 'tokenization-util' npm package (versions 0.2.0 and 1.1.0) includes a heavily obfuscated malicious payload concealed inside the calculateTokenPrice function. The payload uses approximately 1500 leading tab characters for visual concealment, then employs two seeded Fisher-Yates string-shuffler decoders and String.fromCharCode splicing to reconstruct critical identifiers such as 'constructor', 'require', and 'module' at runtime. It dynamically creates a Function constructor to decode and execute a second scrambled JavaScript blob. The code assigns CommonJS require and module bindings to the global object, granting the decoded payload unrestricted access to Node.js built-in modules including network, filesystem, and child process capabilities. This backdoor executes whenever calculateTokenPrice is invoked, providing a remote code execution vector hidden behind obfuscation and undocumented in the package's API or README.
Potential Impact
Any system with the affected versions of the 'tokenization-util' package installed or running is considered fully compromised. The malicious payload grants attackers full control over the host environment by exposing Node.js built-in modules globally and executing arbitrary code. This can lead to theft of secrets, keys, and other sensitive data. Removal of the package alone does not guarantee eradication of the compromise, as the attacker may have established persistent backdoors or additional malware.
Mitigation Recommendations
No official patch or fix is currently available. Immediate removal of the 'tokenization-util' package versions 0.2.0 and 1.1.0 is strongly recommended. All secrets, keys, and credentials stored on affected systems should be rotated from a trusted, uncompromised environment. Due to the high likelihood of full system compromise, a thorough incident response and forensic analysis should be conducted to identify and remediate any persistent threats beyond the malicious package itself.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6440
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-wp9r-fqrq-cg5h"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a520ef568715ace4391dcc2
Added to database: 07/11/2026, 09:37:57 UTC
Last enriched: 07/11/2026, 10:13:17 UTC
Last updated: 07/11/2026, 10:13:17 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.