MAL-2026-5539
Malicious code in mermaid-v11 (npm)
Details
--- _-= Per source details. Do not edit below this line.=-_
## 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.
Are you affected?
Enter the version of the package you're using.
Affected packages
0 No fixed version published yet for mermaid-v11 (npm). Pin to a known-safe version or switch to an alternative.