{"id":"MAL-2026-10177","revision":"c0ca9070cd734e2aab3a34f73e6283dc","records":[{"revision":"c0ca9070cd734e2aab3a34f73e6283dc","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10177","aliases":[],"title":"Malicious code in @jaymara/jsononifier (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ade6fb9a07c6f1417e9569af48b6c638bf12fba7540493b1b38a2d6ba42d101c)\n@jaymara/jsononifier@1.0.2 is advertised as a JSON formatting utility but ships a covert command-execution primitive that fires on require. index.js loads trigger.js, which checks for sandbox indicators (process.env.CI==='true', NODE_ENV==='test', existence of /.dockerenv) and the platform (win32); when those checks indicate a real Windows workstation, it schedules Executer.js via process.nextTick + setTimeout(5000). Executer.js XOR-decodes a byte array from payload.js using key 'xorkey123' and passes the resulting string to child_process.exec with { windowsHide: true }. payload.js openly comments the intent ('XOR-encoded command – not visible in source'). The current decoded value is a demo (calc.exe), but the mechanism — opaque encoded bytes decoded at runtime and handed to exec, gated to skip CI/test/Docker and only fire on real victim machines — is the attack: a future tarball can swap the byte array for any command without changing the visible code. None of this is required by, or consistent with, a JSON formatter.\n","state":0,"publishedAt":"2026-07-10T21:29:35+00:00","modifiedAt":"2026-07-10T22:01:48.8042772+00:00","affected":[{"ecosystem":"npm","name":"@jaymara/jsononifier","ranges":[],"versions":["1.0.0","1.0.2","1.0.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@jaymara/jsononifier/v/1.0.0","https://www.npmjs.com/package/@jaymara/jsononifier/v/1.0.2","https://www.npmjs.com/package/@jaymara/jsononifier/v/1.0.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10177","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10177","identifiers":["MAL-2026-10177"]},"retained":false,"historicalAffected":[]}],"coverage":[]}