# GHSA-P373-68VJ-FVRH: Malicious code in calculator-preinstall-hook-demo (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-11-02
- Modified: 2026-11-02

## Affected versions

- calculator-preinstall-hook-demo (npm): 1.1.2

## Description

calculator-preinstall-hook-demo@1.1.2 presents itself as a test fixture for npm lifecycle hooks. Its preinstall script runs `node preinstall.js` on npm install, which POSTs the machine's hostname and the OS username to the Discord webhook `https://discord.com/api/webhooks/1566215853794394162/xsqpEbSn-cc3DU2AKWdzqWnXX5hjTfV-gUePQZ4evrHGlZctMd40TKCrN42qnJd7moc1`. It was published by the npm account bigdevin55 together with calculator-preinstall-chain-demo@1.1.2, which pulls it in as a dependency.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/5a3735a9d2ea3c7c6a95e61ffedf5ba2aefddfc0/osv/malicious/npm/calculator-preinstall-hook-demo/MAL-2026-18454.json))

## References

- https://github.com/ossf/malicious-packages/blob/5a3735a9d2ea3c7c6a95e61ffedf5ba2aefddfc0/osv/malicious/npm/calculator-preinstall-hook-demo/MAL-2026-18454.json
- https://www.npmjs.com/package/calculator-preinstall-hook-demo
- https://github.com/advisories/GHSA-p373-68vj-fvrh

Page: https://cve.now/GHSA-P373-68VJ-FVRH

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