GHSA-h93x-j3mc-3g8w
Malicious code in global-error-handling (npm)
Auswirkung
## Source: amazon-inspector (d849db4ee159bcf193d6c33967a3ad197579ed55cdceb7efb78cc676fb68ae35) package.json declares a postinstall script that executes index.js on `npm install`. index.js reads os.hostname() and process.cwd() and POSTs them, along with a generated test identifier, to a hardcoded https://webhook.site/0a4d6535-e2dd-46b7-aff7-8af65c145c50 collector. webhook.site is a public third-party request-capture service that is commonly used as an install-time beacon sink. The behavior fires automatically on default install, is directed at a third-party endpoint unrelated to any declared publisher infrastructure, and discloses the installer's machine hostname and current working directory to whoever controls the webhook.site token. Self-descriptive strings in the payload (`event: "authorized-poc-test"`) are author-controlled and do not change the behavior: the shipped code performs unsolicited outbound exfiltration of host identifiers on every install. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/5fe17365cdc838619467e60bb31d230962e275c8/osv/malicious/npm/global-error-handling/MAL-2026-20625.json))
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| npm | global-error-handling | = 1.1.0 | nicht erfasst |
Schwachstellenklasse
Referenzen
- GitHub-Advisory
- https://github.com/advisories/GHSA-h93x-j3mc-3g8w
- https://github.com/ossf/malicious-packages/blob/5fe17365cdc838619467e60bb31d230962e275c8/osv/malicious/npm/global-error-handling/MAL-2026-20625.json
- https://www.npmjs.com/package/global-error-handling/v/1.0.0
- https://www.npmjs.com/package/global-error-handling/v/1.1.0
- https://github.com/ossf/malicious-packages/blob/1438c33fbc77f3d34358e08a3ca51d5bd6cea884/osv/malicious/npm/global-error-handling/MAL-2026-20625.json