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-6510: Malicious code in @merceas/cross-fetch (npm)

0
Critical
Published: 06/26/2026 (06/26/2026, 05:51:44 UTC)
Source: GCVE Database
Product: @merceas/cross-fetch

Description

The @merceas/cross-fetch npm package version 3.1.12 is a malicious package impersonating the legitimate cross-fetch library. It contains obfuscated code that, when imported, downloads and executes attacker-controlled payloads on the host machine. This execution occurs in any environment that loads the module, including CI, build, production, or developer workstations, enabling remote code execution and persistence.

Affected software

npmghsa
@merceas/cross-fetch
Affected versions
=3.1.12

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/26/2026, 22:33:10 UTC

Technical Analysis

The malicious @merceas/cross-fetch package (version 3.1.12) masquerades as the legitimate cross-fetch npm package by reusing its README, homepage, and author metadata. Its main module includes decoy code plus obfuscated Immediately Invoked Function Expressions (IIFEs) that dynamically import Node.js core modules to decrypt a URL, fetch a payload via HTTPS with retry and redirect handling, write the payload to a temporary directory, set executable permissions, and execute it via bash. It also spawns a detached child process for persistence. The obfuscation techniques include string-array numeric shifts, RC4-keyed base64 lookups, and anti-tamper debugger self-tests to evade static analysis. Importing this package results in execution of attacker-controlled code on the host.

Potential Impact

This malicious package enables remote code execution on any system that imports it, potentially compromising build environments, continuous integration pipelines, production systems, or developer machines. The attacker-controlled payload can execute arbitrary commands with the privileges of the importing process, leading to full system compromise, persistence, and further malicious activity. There are no known exploits in the wild reported at this time.

Mitigation Recommendations

No official patch or remediation is currently available for this malicious package. Users and organizations should immediately remove the @merceas/cross-fetch package version 3.1.12 from their projects and dependency trees. Verify that no transitive dependencies are pulling in this package. Use trusted sources and verify package authenticity before installation. Monitor for any unusual activity on affected systems and consider rebuilding environments after removal. Patch status is not yet confirmed — check the vendor advisory or trusted security sources for updates.

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

Threat ID: 6a3ef7bd27e9c79719ffc930

Added to database: 06/26/2026, 22:05:49 UTC

Last enriched: 06/26/2026, 22:33:10 UTC

Last updated: 06/26/2026, 22:33:10 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