GHSA-xq7h-489c-vjxm
Malicious code in fastify-addone (npm)
Auswirkung
## Source: amazon-inspector (21b9e477cff478ab071039c18c3adb6577a07cc1d82687b9e7d7cd2594dc9ddf) The package presents itself as fastify-plugin (name fastify-addone, repository/homepage/bugs fields point at fastify/fastify-plugin) and copies that project's source with a malicious statement inserted. lib/getPluginName.js contains a top-level statement that base64-decodes a URL via atob, fetches the JSON at https://www.jsonkeeper.com/b/HDXPP, and passes the returned content field to eval. This executes attacker-controlled JavaScript in the caller's process on any require('fastify-addone') (directly or via plugin.js). The destination is an anonymous, mutable third-party JSON-hosting service — not the publisher's infrastructure — and the payload URL is hidden behind base64 to evade casual review. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/4e54bda12131399ffe6308b84f7e690ff0d3aa5f/osv/malicious/npm/fastify-addone/MAL-2026-10098.json))
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| npm | fastify-addone | = 5.1.0 | nicht erfasst |
| npm | fastify-addone | = 5.1.1 | nicht erfasst |
Schwachstellenklasse
Referenzen
- GitHub-Advisory
- https://github.com/advisories/GHSA-xq7h-489c-vjxm
- https://github.com/ossf/malicious-packages/blob/4e54bda12131399ffe6308b84f7e690ff0d3aa5f/osv/malicious/npm/fastify-addone/MAL-2026-10098.json
- https://www.npmjs.com/package/fastify-addone/v/5.1.0
- https://www.npmjs.com/package/fastify-addone/v/5.1.1