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-6568: Malicious code in express-mocha-test (npm)

0
Critical
Published: 06/29/2026 (06/29/2026, 04:25:49 UTC)
Source: GCVE Database
Product: express-mocha-test

Description

The npm package express-mocha-test version 0.0.1 contains malicious code that executes attacker-controlled JavaScript during installation. It uses a postinstall lifecycle hook to fetch code from an attacker-controlled ngrok-free.app tunnel and evaluates it without integrity checks. The package metadata impersonates known maintainers and misrepresents its functionality, indicating deliberate malicious intent.

Affected software

npmghsa
express-mocha-test
Affected versions
=0.0.1

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: 06/29/2026, 22:36:15 UTC

Technical Analysis

The express-mocha-test package at version 0.0.1 declares a postinstall lifecycle hook that loads its main module, which performs a fetch request to an anonymous, attacker-operated ngrok-free.app tunnel. The response body from this request is passed directly to eval(), resulting in arbitrary code execution on any machine running npm install for this package. The package metadata falsely claims authorship by a well-known maintainer and provides a misleading description, suggesting deliberate impersonation and malicious behavior. This package is flagged as malicious by the OpenSSF Package Analysis and Amazon Inspector sources.

Potential Impact

Any system that installs [email protected] is at risk of executing arbitrary, attacker-controlled JavaScript code during the npm install process. This can lead to compromise of the host environment, data theft, or further malicious activity. The lack of integrity checks or pinning exacerbates the risk by allowing dynamic code execution from an ephemeral attacker-controlled endpoint.

Mitigation Recommendations

No official patch or remediation is currently available for [email protected]. Users and organizations should avoid installing this package entirely. Remove any existing installations of [email protected] from projects and dependency trees. Use trusted package sources and verify package authenticity before installation. Monitor for and block network connections to suspicious domains such as ngrok-free.app tunnels. Check vendor advisories or npm security advisories for updates or removals related to this package.

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-6568
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a42ed6d27e9c79719938e97

Added to database: 06/29/2026, 22:10:53 UTC

Last enriched: 06/29/2026, 22:36:15 UTC

Last updated: 06/30/2026, 01:20:45 UTC

Views: 2

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