{"id":"MAL-2026-12805","revision":"2fa3de2c3a474cd289044caec3392df7","records":[{"revision":"2fa3de2c3a474cd289044caec3392df7","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12805","aliases":[],"title":"Malicious code in strath (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b9ae02b92920c1e028b5785e69013ea4662e4eb3180872531d64ccca00eef239)\nThe package declares a postinstall script that runs dist/config.js. That script fetches JSON from https://my-api.trade-api.workers.dev?id=2 and then executes `globalThis[data.success](data.id)`, where both the method name and its argument are supplied by the remote server. This gives the operator of that endpoint arbitrary code execution on any machine that runs `npm install strath` — the invocation fires automatically as part of the default install lifecycle. The behavior is unrelated to the package's advertised path-utility purpose. The same script also references `globalThis[tag](text)` with undefined identifiers, consistent with a deliberately opaque dropper shape rather than a normal build step.\n","state":0,"publishedAt":"2026-08-05T13:36:26+00:00","modifiedAt":"2026-08-05T14:37:22.8141289+00:00","affected":[{"ecosystem":"npm","name":"strath","ranges":[],"versions":["1.1.1","1.1.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/strath/v/1.1.1","https://www.npmjs.com/package/strath/v/1.1.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12805","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12805","identifiers":["MAL-2026-12805"]},"retained":false,"historicalAffected":[]}],"coverage":[]}