{"id":"MAL-2026-13946","revision":"913e7478cf7b4d15a50fe335f99b1a2d","records":[{"revision":"913e7478cf7b4d15a50fe335f99b1a2d","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13946","aliases":[],"title":"Malicious code in date-fmt-helper-xz (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b384650ec0fabdd01a7dfc513cccd25156611a04c17ba0c435b950ddb9215777)\ndate-fmt-helper-xz ships a postinstall.js that runs automatically on npm install. The script opens a TCP connection to the hardcoded remote host 8.135.48.40 on port 4444 and pipes /bin/sh stdio over the socket, granting the remote party interactive shell access on the installer's machine. Bash /dev/tcp and python3 pty.spawn fallbacks are included to maximize the chance the shell succeeds across environments. On failure of the shell paths, the script issues an HTTP GET to http://8.135.48.40/shell/failed and /shell/error with the error message, confirming the same host as attacker command-and-control. The package advertises date formatting; the reverse shell is unrelated to any legitimate functionality.\n","state":0,"publishedAt":"2026-08-13T17:16:06+00:00","modifiedAt":"2026-08-13T17:30:12.5689461+00:00","affected":[{"ecosystem":"npm","name":"date-fmt-helper-xz","ranges":[],"versions":["1.0.4"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/date-fmt-helper-xz/v/1.0.4"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13946","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13946","identifiers":["MAL-2026-13946"]},"retained":false,"historicalAffected":[]}],"coverage":[]}