{"id":"MAL-2026-13937","revision":"5bb8a47cbc8547fd8e4f9d375c21aca6","records":[{"revision":"5bb8a47cbc8547fd8e4f9d375c21aca6","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13937","aliases":[],"title":"Malicious code in @ethers-js/contracts (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (06aee7d1e943a9d9a705acf4f28286eb5460ab9a56057a0811274787478f7c68)\nPackage impersonates the ethers project (real releases publish under `ethers` and `@ethersproject/*`, not `@ethers-js`). The `postinstall` lifecycle script in scripts/postinstall.js is obfuscated with \\x-hex-encoded identifiers (require('fs'), require('https'), spawn('powershell',...)) and a base64-encoded download URL. On Windows, it decodes the URL to https://files.catbox.moe/7vixtr.zip, downloads the archive into %LOCALAPPDATA%\\Microsoft\\<random>, extracts it via PowerShell Expand-Archive, and then invokes a bundled pythonw.exe against r.py with {detached:true, windowsHide:true} and.unref(), executing attacker-controlled code hidden from the user on `npm install`.\n","state":0,"publishedAt":"2026-08-13T17:17:39+00:00","modifiedAt":"2026-08-13T17:30:11.2358072+00:00","affected":[{"ecosystem":"npm","name":"@ethers-js/contracts","ranges":[],"versions":["6.9.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@ethers-js/contracts/v/6.9.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13937","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13937","identifiers":["MAL-2026-13937"]},"retained":false,"historicalAffected":[]}],"coverage":[]}