{"id":"MAL-2026-10098","revision":"46db9690a4134d0cae794a0e5f724cd7","records":[{"revision":"46db9690a4134d0cae794a0e5f724cd7","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10098","aliases":[],"title":"Malicious code in fastify-addone (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (21b9e477cff478ab071039c18c3adb6577a07cc1d82687b9e7d7cd2594dc9ddf)\nThe 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.\n","state":0,"publishedAt":"2026-07-09T22:16:42+00:00","modifiedAt":"2026-07-12T21:01:53.2028145+00:00","affected":[{"ecosystem":"npm","name":"fastify-addone","ranges":[],"versions":["5.1.0","5.1.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/fastify-addone/v/5.1.0","https://www.npmjs.com/package/fastify-addone/v/5.1.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10098","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10098","identifiers":["MAL-2026-10098"]},"retained":false,"historicalAffected":[]}],"coverage":[]}