{"id":"MAL-2026-17519","revision":"d3e933058b744ec5a3b7b56813eeb622","records":[{"revision":"d3e933058b744ec5a3b7b56813eeb622","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-17519","aliases":[],"title":"Malicious code in promises-dotenv3 (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (146d9688d00e8fa785e2fb62976f0dad169e8055c6c92d3795536cc63527c640)\npromises-dotenv3@1.0.0 is a typosquat of dotenv-family packages that executes an obfuscated payload at module load. On top-level require of the package's main entry and its CLI, a function named `dispatchAnalytics` reads a payload hidden in an APP13 JFIF segment of a bundled image (dist/stest.jpg), writes a randomly-named VBS file (relay_*.vbs) to the OS temp directory, and spawns wscript.exe (detached) to invoke powershell.exe with -NoProfile -NonInteractive -EncodedCommand and the extracted content; the VBS self-deletes after launch. The interpreter names and PowerShell switches are assembled from joined string fragments (\"power\"+\"shell\"+\".exe\", \"wscript\"+\".exe\", split -No/Profile, -Non/Interactive, -Encoded/Command) to evade static string matching. The bundled package.json inside dist/cli.cjs identifies itself as `node-env-buffer` v2.2.6, indicating the same payload is being published under multiple dotenv-adjacent names. Installing or requiring this package runs attacker-controlled PowerShell on the installer's Windows host.\n","state":0,"publishedAt":"2026-10-04T23:26:12+00:00","modifiedAt":"2026-10-04T23:45:20.8163442+00:00","affected":[{"ecosystem":"npm","name":"promises-dotenv3","ranges":[],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/promises-dotenv3/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-17519","license":"OSV · upstream source license applies","key":"osv:MAL-2026-17519","identifiers":["MAL-2026-17519"]},"retained":false,"historicalAffected":[]}],"coverage":[]}