MAL-2026-6510: Malicious code in @merceas/cross-fetch (npm)
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.
AI Analysis
Technical Summary
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.
MAL-2026-6510: Malicious code in @merceas/cross-fetch (npm)
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
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 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.
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 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.