MAL-2026-5539
Dashboard / Malicious Package / MAL-2026-5539
MAL-2026-5539
Summary: Malicious code in mermaid-v11 (npm)
Details: Source: amazon-inspector (416d5c5ab1bc70076021520f20e67c3c52a81b74832379e19012fa2f6526c469) The package impersonates the legitimate `mermaid` diagramming library (name `mermaid-v11`, bogus version `9999.0.2`, description 'Mermaid v11 diagramming library') and ships no library code — only a malicious `preinstall` lifecycle hook. On `npm install`, package.json line 6 runs `node -e` that reads `require('os').hostname()` and the OS username and beacons them out-of-band to an attacker-controlled Interactsh endpoint via two channels: an HTTPS GET to `https://d8l0dj5t5p5il86s3d3gepriqucsnn1nd.oast.me/?h=<hostname>&u=<username>&pkg=mermaid-v11`, and a DNS lookup of `mermaid-v11.<hostname>.d8l0dj5t5p5il86s3d3gepriqucsnn1nd.oast.me` to leak the hostname through the resolver chain. The behavior fires automatically on default install with no user interaction, harvesting installer host identifiers for an attacker-controlled OAST listener. Source: ghsa-malware (08e5fdefe3805b0f3e8caac9d44a8b8f95355b589742610913ba8ae5c357a498) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it. Source: ossf-package-analysis (003edde2881c4b52d0a0ae821b81083c569fc8bf9ef236a216c82054e2cb3b4f) The OpenSSF Package Analysis project identified 'mermaid-v11' @ 9999.0.2 (npm) as malicious. It is considered malicious because: - The package communicates with a domain associated with malicious activity.
References: https://www.npmjs.com/package/mermaid-v11/v/9999.0.2, https://www.npmjs.com/package/mermaid-v11/v/9999.0.1, https://www.npmjs.com/package/mermaid-v11/v/9999.0.0, https://github.com/advisories/GHSA-xmj9-vhj4-8q6c
Affected packages
Package
Name: mermaid-v11
Purl: pkg:npm/mermaid-v11
Affected ranges
Type: SEMVER
Events:
