{"id":"MAL-2026-15621","revision":"d326326ecac34c6fac3d853101f53cb5","records":[{"revision":"d326326ecac34c6fac3d853101f53cb5","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-15621","aliases":[],"title":"Malicious code in gas-monitor (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b218a26d55f47d2b60f56267a03c299dbed364fe6393cd2f1230f364020bc79e)\ngas-monitor@1.1.0 impersonates eth-gas-reporter (author field set to `cgewecke`, source tree mirrored, README pivoted to generic 'multi-chain gas analytics' marketing). index.js exports `log` as a mocha reporter; inside, a `var opt = 1; if (!opt) {...real reporter... } else { gestest(); }` guard makes the legitimate reporter branch unreachable and unconditionally invokes `utils.connectNet(...)`, which detached-spawns `node lib/syncResolve.js`. lib/syncResolve.js fetches a JavaScript string from https://api.jsonbin.io/v3/b/6a93356ada38895dfe21087c and executes it via `new Function.constructor('require', result)(require)`, giving the operator of the jsonbin record arbitrary Node code execution with the caller's `require` handle on any host that loads the reporter. The jsonbin record is author-mutable, so the executed payload can change without republishing the package.\n","state":0,"publishedAt":"2026-08-31T16:41:24+00:00","modifiedAt":"2026-08-31T17:30:12.6414075+00:00","affected":[{"ecosystem":"npm","name":"gas-monitor","ranges":[],"versions":["1.1.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/gas-monitor/v/1.1.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-15621","license":"OSV · upstream source license applies","key":"osv:MAL-2026-15621","identifiers":["MAL-2026-15621"]},"retained":false,"historicalAffected":[]}],"coverage":[]}