{"id":"MAL-2026-14032","revision":"d14f6e6572014ade936d5f5df37045c3","records":[{"revision":"d14f6e6572014ade936d5f5df37045c3","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-14032","aliases":[],"title":"Malicious code in datefmt-simple-utils (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (7edc0c1f9cc25265504ab10c2634c3ea17e4028ff8412d4d7f4b22c41c33c3c9)\ndatefmt-simple-utils presents itself as a date-formatting utility, but its package.json declares scripts.postinstall=\"node postinstall.js\", which fires automatically on npm install. postinstall.js connects a TCP socket to the hardcoded remote host 8.135.48.40 on port 4444 and attaches an interactive /bin/bash to that socket, giving the remote endpoint full command execution on the installer's machine. Three fallback techniques target the same host: a python3 pty.spawn reverse shell, a python3 subprocess-based variant, and a Node net.connect + spawn('/bin/bash', ['-i']) variant. The advertised date-formatting purpose is a cover story; no such functionality is wired into the install-time code path.\n","state":0,"publishedAt":"2026-08-14T14:12:16+00:00","modifiedAt":"2026-08-14T14:46:35.9706239+00:00","affected":[{"ecosystem":"npm","name":"datefmt-simple-utils","ranges":[],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/datefmt-simple-utils/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-14032","license":"OSV · upstream source license applies","key":"osv:MAL-2026-14032","identifiers":["MAL-2026-14032"]},"retained":false,"historicalAffected":[]}],"coverage":[]}