# GHSA-RGFV-CV82-PPCM: Malicious code in solidity-gas-watcher (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-11-05
- Modified: 2026-11-13

## Affected versions

- solidity-gas-watcher (npm): 2.21.0

## Description

solidity-gas-watcher 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.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/23ba843b4a773277fa7a4a51240e83cd70ea2a45/osv/malicious/npm/solidity-gas-watcher/MAL-2026-18695.json))

## References

- https://github.com/ossf/malicious-packages/blob/23ba843b4a773277fa7a4a51240e83cd70ea2a45/osv/malicious/npm/solidity-gas-watcher/MAL-2026-18695.json
- https://osv.dev/vulnerability/MAL-2026-17509
- https://www.npmjs.com/package/solidity-gas-watcher
- https://github.com/ossf/malicious-packages/blob/d9e78122ff1e19623ced02ae6cc75ed40bab1835/osv/malicious/npm/solidity-gas-watcher/MAL-2026-18695.json
- https://www.npmjs.com/package/solidity-gas-watcher/v/2.21.0
- https://github.com/advisories/GHSA-rgfv-cv82-ppcm

Page: https://cve.now/GHSA-RGFV-CV82-PPCM

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