# MAL-2026-18696: Malicious code in solidity-map (npm)

- Database: OpenSSF
- Malicious package: yes
- Published: 2026-10-26
- Modified: 2026-11-13

## Affected versions

- solidity-map (npm): 2.21.0

## Description

solidity-map ships index.js and lib/config.js, byte-identical to the hardhat-roof and chai-foundry payloads: a pino copy whose entry point loads an obfuscated dropper. It is a new name for the hardhat-roof (MAL-2026-17509) and chai-foundry (MAL-2026-13356) campaign; the file hashes below match that record's evidence. The package presents itself as an ordinary utility, so the code runs on import or install without the user knowing.

---
_-= Per source details. Do not edit below this line.=-_

## Source: amazon-inspector (2f1fb5c9d4a046b5e536a449062bf29191d69ca83ab311cb75c889e6cc828354)
Package published as 'solidity-map' with a description about vulnerability management ships code copied from the pino logging library (lib/levels.js, lib/proto.js, lib/tools.js, lib/transport.js, lib/worker.js are upstream pino sources; index.js exports middleware labeled 'pino'; keywords are ['fast','logger','stream','json']). The author 'Robert King <hello@jsonspack.com>' is unrelated to pino's maintainers, and the published name does not correspond to the shipped functionality. Alongside this cover-story mismatch, lib/config.js is a ~4.3MB single-line IIFE heavily obfuscated with obfuscator.io-style transforms: a 26,185-element rotating string array, two decoder functions (Y/k), hex-escaped object keys, control-flow flattening, and ~44,484 inlined decoded-string operations. Legitimate pino contains no such file. The combination of a trojaned cover identity (pino clone republished under an unrelated package name by an unrelated author) with a large obfuscated module that executes when the package is loaded is the structural shape of a supply-chain trojan whose runtime behavior is deliberately hidden from static review.

## References

- https://www.npmjs.com/package/solidity-map
- https://osv.dev/vulnerability/MAL-2026-17509
- https://www.npmjs.com/package/solidity-map/v/2.21.0

Page: https://cve.now/MAL-2026-18696

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