Malicious code in ts-wross (npm)
The ts-wross npm package is a malicious package impersonating the legitimate big.js library. It contains injected code that loads and executes a dependency called node-slot at import time, which can run attacker-controlled code silently. Installing this package can lead to full compromise of the affected system, requiring immediate secret and key rotation and removal of the package.
AI Analysis
Technical Summary
The ts-wross package is a malicious npm package masquerading as the legitimate big.js arbitrary-precision arithmetic library. While its source code is mostly a verbatim copy of big.js v7.0.1, it contains an injected try/catch block that requires and executes the node-slot package at module load time. This injected code runs silently due to error swallowing, enabling execution of attacker-controlled code on any system that imports or requires ts-wross. The package metadata falsely claims authorship and repository information to appear legitimate. The legitimate big.js package has no dependencies and no such code, making ts-wross a lure to drop malicious code on consumers who mistakenly install it.
Potential Impact
Any system that installs or runs the ts-wross package is considered fully compromised. The malicious code executes at import time, potentially giving attackers full control over the affected machine. All secrets and keys stored on the compromised system should be rotated immediately from a separate, trusted machine. Removing the package alone may not eliminate all malicious artifacts or backdoors introduced by the attacker.
Mitigation Recommendations
No official patch or fix is available for this malicious package. The recommended mitigation is to immediately remove the ts-wross package from all affected systems. Additionally, rotate all secrets, credentials, and keys that were stored or used on the compromised machines from a secure environment. Exercise caution when installing npm packages and verify package authenticity to avoid supply chain attacks.
Malicious code in ts-wross (npm)
Description
The ts-wross npm package is a malicious package impersonating the legitimate big.js library. It contains injected code that loads and executes a dependency called node-slot at import time, which can run attacker-controlled code silently. Installing this package can lead to full compromise of the affected system, requiring immediate secret and key rotation and removal of the package.
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 ts-wross package is a malicious npm package masquerading as the legitimate big.js arbitrary-precision arithmetic library. While its source code is mostly a verbatim copy of big.js v7.0.1, it contains an injected try/catch block that requires and executes the node-slot package at module load time. This injected code runs silently due to error swallowing, enabling execution of attacker-controlled code on any system that imports or requires ts-wross. The package metadata falsely claims authorship and repository information to appear legitimate. The legitimate big.js package has no dependencies and no such code, making ts-wross a lure to drop malicious code on consumers who mistakenly install it.
Potential Impact
Any system that installs or runs the ts-wross package is considered fully compromised. The malicious code executes at import time, potentially giving attackers full control over the affected machine. All secrets and keys stored on the compromised system should be rotated immediately from a separate, trusted machine. Removing the package alone may not eliminate all malicious artifacts or backdoors introduced by the attacker.
Mitigation Recommendations
No official patch or fix is available for this malicious package. The recommended mitigation is to immediately remove the ts-wross package from all affected systems. Additionally, rotate all secrets, credentials, and keys that were stored or used on the compromised machines from a secure environment. Exercise caution when installing npm packages and verify package authenticity to avoid supply chain attacks.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6278
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-53h7-mc3v-w73c"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4f6c6168715ace4315a078
Added to database: 07/09/2026, 09:39:45 UTC
Last enriched: 07/09/2026, 10:04:37 UTC
Last updated: 07/21/2026, 17:18:00 UTC
Views: 16
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.