Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

MAL-2026-10424: Malicious code in terminal-mascot (npm)

0
Critical
Published: 07/13/2026 (07/13/2026, 06:51:23 UTC)
Source: GCVE Database
Product: terminal-mascot

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

npmghsa
terminal-mascot
Affected versions
=3.5.2

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

AILast updated: 07/13/2026, 09:27:21 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses