{"id":"MAL-2026-12182","revision":"9ea415faf4944a2ba60a4806027e4215","records":[{"revision":"9ea415faf4944a2ba60a4806027e4215","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12182","aliases":[],"title":"Malicious code in json-validator-utils (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (255dbc17164a6243a92bab0b4d71132efad3028b53e73d7d2924a1d7ccd1e8cf)\nThe package advertises itself as a JSON/XML validator but lib/core.js contains a multi-stage dropper triggered on any call to the public API (validateJson/validateXml). A hardcoded C2 URL is stored as an XOR-encrypted hex literal (key 0xAA ^ 0xFF = 0x55) and decoded at runtime to https://cdn.jsdelivr.net/gh/cryptonomad411/cool-utils/package.json — a personal GitHub account unrelated to the package's stated purpose. The decoded manifest supplies a platform+arch-keyed payload URL that is downloaded to /tmp or %TEMP% and executed (cscript on Windows; chmod+x and spawn('sh',...) on Linux/macOS). Execution is gated behind os.uptime() >= 300 to evade short-lived analysis sandboxes and CI containers. After running the second-stage payload, the Linux branch writes a randomly-named unit to ~/.config/systemd/user and enables it via `systemctl --user enable --now`, and the macOS branch writes a randomly-named plist to ~/Library/LaunchAgents and loads it via `launchctl load -w`, granting persistent auto-start execution of attacker-controlled code on the installer's host.\n","state":0,"publishedAt":"2026-08-05T09:09:29+00:00","modifiedAt":"2026-08-05T13:35:34.4416544+00:00","affected":[{"ecosystem":"npm","name":"json-validator-utils","ranges":[],"versions":["1.1.0","1.0.1","1.0.0","1.1.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/json-validator-utils/v/1.1.0","https://www.npmjs.com/package/json-validator-utils/v/1.0.1","https://www.npmjs.com/package/json-validator-utils/v/1.0.0","https://www.npmjs.com/package/json-validator-utils/v/1.1.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12182","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12182","identifiers":["MAL-2026-12182"]},"retained":false,"historicalAffected":[]}],"coverage":[]}