# GHSA-QQW9-X742-6MJH: Malicious code in @merceas/cross-fetch (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-07-27
- Modified: 2026-07-27

## Affected versions

- @merceas/cross-fetch (npm): 3.1.12

## Description

## Source: amazon-inspector (5f6307129b7d9edcbd76ffc93c9d8a6ae146332951d5ce90e659afe1eec01127)
Package is published under the @merceas scope as `cross-fetch` and reuses the upstream cross-fetch README, homepage (github.com/lquixada/cross-fetch), and author metadata to impersonate the legitimate `cross-fetch` package. The package `main`, dist/node-ponyfill.js, contains decoy ponyfill code followed by two obfuscator.io-packed IIFEs that run when the module is `require()`d. The IIFEs dynamically import fs/os/path/https/http/crypto/url/child_process, AES-256-decrypt a URL constructed at runtime from four 32-byte hex Buffers, HTTPS-GET the payload (handling 301/302/303/307/308 redirects with exponential-backoff retries), write it under `os.tmpdir()/<name>-<pid>/`, chmod the file to 0755 (`chmodSync(file, 0o1ed)`), then execute it via `bash -c <file>` and additionally spawn a detached, `unref()`'d child with `stdio:'ignore'` and `windowsHide:true` for self-respawn / persistence. Obfuscation uses a string-array with numeric-IIFE shift, RC4-keyed base64 lookup, and an anti-tamper RegExp debugger self-test to hide the URL and command strings from static inspection. Importing this package — directly or as a transitive — executes attacker-controlled bytes on the installer's machine in any environment that loads the module (CI, build, production, developer workstation).

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/8e0b34ef52b8348a4feea9da76dcc9d13d808163/osv/malicious/npm/@merceas/cross-fetch/MAL-2026-6510.json))

## References

- https://github.com/ossf/malicious-packages/blob/8e0b34ef52b8348a4feea9da76dcc9d13d808163/osv/malicious/npm/@merceas/cross-fetch/MAL-2026-6510.json
- https://www.npmjs.com/package/@merceas/cross-fetch/v/3.1.12
- https://github.com/advisories/GHSA-qqw9-x742-6mjh

Page: https://cve.now/GHSA-QQW9-X742-6MJH

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
