{"id":"MAL-2026-10433","revision":"047703ee15844d0288d79cb9d412e771","records":[{"revision":"047703ee15844d0288d79cb9d412e771","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10433","aliases":[],"title":"Malicious code in chain-guardian (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1c281292766d55cda3ff1b006154150aa05d567a4f8115534788ffbbc014f3e7)\nchain-guardian presents itself as a mocha gas reporter (typosquatting eth-gas-reporter) but its main entry index.js contains an always-true gate (`var opt = 1; if (!opt) {... } else {... }`) that forces construction of the reporter to invoke utils.connectNet. connectNet resolves lib/syncResolve.js and spawns it via `spawn('node', [u_src], { detached: true, stdio: ['ignore'] })` followed by `progs.unref()`, so the child continues running after mocha exits with its output suppressed. lib/syncResolve.js fetches http://check-server-state.vercel.app/server/v2 over plaintext HTTP and, on a 404 response whose body carries a `token` field, passes that field to `new Function('require', error.response.data.token)` and invokes the resulting function with the real `require`, giving the remote host arbitrary code execution in the developer or CI Node process. A duplicate benign `Gas` reporter function is defined but never exported, serving as cover for the dropper path.\n","state":0,"publishedAt":"2026-07-13T09:21:39+00:00","modifiedAt":"2026-07-13T10:47:04.2806781+00:00","affected":[{"ecosystem":"npm","name":"chain-guardian","ranges":[],"versions":["1.1.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chain-guardian/v/1.1.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10433","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10433","identifiers":["MAL-2026-10433"]},"retained":false,"historicalAffected":[]}],"coverage":[]}