MAL-2026-10424: Malicious code in terminal-mascot (npm)
The npm package terminal-mascot version 3.5.2 contains malicious code in its postinstall script that downloads and executes arbitrary code from a remote, mutable URL without verification. This allows attacker-controlled code execution during installation. The package metadata is misleading, complicating assessment by users. The fetch mechanism also allows downgrade from HTTPS to HTTP, increasing exposure to man-in-the-middle attacks.
AI Analysis
Technical Summary
[email protected] includes a postinstall script (install-check.cjs) that fetches a remote JSON configuration from a mutable URL (https://trabalhos-flax.vercel.app/config/clob-math.json). It downloads an attacker-chosen tarball, extracts it, runs npm install inside the extracted directory, then loads and executes a JavaScript module (peer-math.js) by invoking its syncSession() function. The fetched content is neither pinned, hashed, nor signature-verified, enabling arbitrary code execution on the installer's machine at install time. The package metadata is inconsistent and misleading, with the npm name, package.json description, README, and shipped files not aligning, preventing correct assessment by users. Additionally, the fetcher follows redirects without restriction and may downgrade HTTPS URLs to HTTP, increasing the risk of man-in-the-middle attacks on the downloaded payload.
Potential Impact
Arbitrary code execution occurs on the system of anyone installing [email protected], as attacker-controlled code is fetched and executed during installation. This compromises the security and integrity of the affected environment. The misleading package metadata increases the likelihood of inadvertent installation by users who cannot accurately assess the package's intent or contents. The downgrade from HTTPS to HTTP during fetch adds a network-level attack vector via man-in-the-middle interception.
Mitigation Recommendations
No official patch or remediation is currently documented for [email protected]. Users should avoid installing this version of the package. Verify package integrity and provenance before installation, and prefer packages with verified sources and pinned dependencies. Monitor vendor advisories or npm security notices for updates or fixes addressing this malicious package. Since this is a malicious package rather than a traditional vulnerability, removal and replacement with trusted alternatives is recommended.
MAL-2026-10424: Malicious code in terminal-mascot (npm)
Description
The npm package terminal-mascot version 3.5.2 contains malicious code in its postinstall script that downloads and executes arbitrary code from a remote, mutable URL without verification. This allows attacker-controlled code execution during installation. The package metadata is misleading, complicating assessment by users. The fetch mechanism also allows downgrade from HTTPS to HTTP, increasing exposure to man-in-the-middle attacks.
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
[email protected] includes a postinstall script (install-check.cjs) that fetches a remote JSON configuration from a mutable URL (https://trabalhos-flax.vercel.app/config/clob-math.json). It downloads an attacker-chosen tarball, extracts it, runs npm install inside the extracted directory, then loads and executes a JavaScript module (peer-math.js) by invoking its syncSession() function. The fetched content is neither pinned, hashed, nor signature-verified, enabling arbitrary code execution on the installer's machine at install time. The package metadata is inconsistent and misleading, with the npm name, package.json description, README, and shipped files not aligning, preventing correct assessment by users. Additionally, the fetcher follows redirects without restriction and may downgrade HTTPS URLs to HTTP, increasing the risk of man-in-the-middle attacks on the downloaded payload.
Potential Impact
Arbitrary code execution occurs on the system of anyone installing [email protected], as attacker-controlled code is fetched and executed during installation. This compromises the security and integrity of the affected environment. The misleading package metadata increases the likelihood of inadvertent installation by users who cannot accurately assess the package's intent or contents. The downgrade from HTTPS to HTTP during fetch adds a network-level attack vector via man-in-the-middle interception.
Mitigation Recommendations
No official patch or remediation is currently documented for [email protected]. Users should avoid installing this version of the package. Verify package integrity and provenance before installation, and prefer packages with verified sources and pinned dependencies. Monitor vendor advisories or npm security notices for updates or fixes addressing this malicious package. Since this is a malicious package rather than a traditional vulnerability, removal and replacement with trusted alternatives is recommended.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10424
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a54ad9c68715ace438f3cef
Added to database: 07/13/2026, 09:19:24 UTC
Last enriched: 07/13/2026, 09:27:21 UTC
Last updated: 07/13/2026, 14:21:10 UTC
Views: 3
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.