GHSA-xcq8-xp54-r78w
Malicious code in @zapier/spectral-api-ruleset (npm)
Impact
## Source: amazon-inspector (d3f10a9695952f169fff0da94ca1ea47045d97dd486857aad5dbc7b608e2316b) The package @zapier/spectral-api-ruleset was found to contain malicious code. ## Source: google-open-source-security (c9470009eec3c58fcacc5893c6c90f0214677afa65cc44cb8ee8243766fdd0c8) This package was compromised by the Sha1-Hulud: The Second Coming NPM worm. The malicious payload steals tokens and credentials and publishes them to GitHub. The worm will propogate itself to NPM packages the user owns and establish persistence is a GitHub action. The package may also destroy the user's home directory. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/fab7a1742d58ad342ae3b3e018b6b545cdb9c4f8/osv/malicious/npm/@zapier/spectral-api-ruleset/MAL-2025-190919.json))
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | @zapier/spectral-api-ruleset | = 1.9.1 | none recorded |
| npm | @zapier/spectral-api-ruleset | = 1.9.2 | none recorded |
| npm | @zapier/spectral-api-ruleset | = 1.9.3 | none recorded |
Weakness classification
References
- GitHub advisory
- https://github.com/advisories/GHSA-xcq8-xp54-r78w
- https://github.com/ossf/malicious-packages/blob/fab7a1742d58ad342ae3b3e018b6b545cdb9c4f8/osv/malicious/npm/@zapier/spectral-api-ruleset/MAL-2025-190919.json
- https://www.aikido.dev/blog/shai-hulud-strikes-again-hitting-zapier-ensdomains
- https://www.stepsecurity.io/blog/sha1-hulud-the-second-coming-zapier-ens-domains-and-other-prominent-npm-packages-compromised
- https://www.wiz.io/blog/shai-hulud-2-0-ongoing-supply-chain-attack