{"id":"MAL-2026-12378","revision":"878e7631e2954c7ea5115c7addd815f6","records":[{"revision":"878e7631e2954c7ea5115c7addd815f6","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12378","aliases":[],"title":"Malicious code in express-rate-controller (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (43c2ed4e91378e1ca9df444de58c0ff3afebce39741ab67011b55490740cac11)\nThe package is published under the name express-rate-controller but describes itself as an SVG utilities library and ships a bin named svgcraft — the name, description, and CLI do not match. src/index.cjs exports getPlugin(), which issues an HTTPS GET to https://api.avax-test.dev/ext/bc/rpc with TLS verification disabled (rejectUnauthorized: false) and passes the response body to new Function('require', data)(require), executing whatever JavaScript that endpoint returns with full require access. The loader is present only in the CommonJS build; index.mjs and index.d.ts do not declare getPlugin(), hiding the export from typed and ESM consumers. Any consumer that require()s the package and invokes getPlugin() — or downstream code that iterates the exported api object — runs attacker-controlled code delivered from api.avax-test.dev.\n","state":0,"publishedAt":"2026-08-05T13:04:26+00:00","modifiedAt":"2026-08-05T19:19:51.0608567+00:00","affected":[{"ecosystem":"npm","name":"express-rate-controller","ranges":[],"versions":["2.0.1","2.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/express-rate-controller/v/2.0.1","https://www.npmjs.com/package/express-rate-controller/v/2.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12378","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12378","identifiers":["MAL-2026-12378"]},"retained":false,"historicalAffected":[]}],"coverage":[]}