{"id":"MAL-2026-13940","revision":"8744f11e207a4fcfb5f8e0a248735ddc","records":[{"revision":"8744f11e207a4fcfb5f8e0a248735ddc","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13940","aliases":[],"title":"Malicious code in @opezneppelin/contracts (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (abe04ec28ed56cb0a253131129df8078d425f8a0c579c439ced9c75b6977a6ab)\n@opezneppelin/contracts is a typosquat of @openzeppelin/contracts. Its postinstall lifecycle script (scripts/postinstall.js) hex-escapes all module names, method names, and string constants (fs, https, child_process, powershell, -NoP,.exe) and stores the download URL as a base64 literal that decodes to https://files.catbox.moe/9bppy2.zip. On Windows installers, the script downloads that ZIP to %TEMP%, expands it via PowerShell Expand-Archive, recursively searches the extracted contents for the first.exe, and spawns it detached. The destination is an anonymous, mutable file-host (catbox.moe) unrelated to any OpenZeppelin infrastructure, and the fetched executable is opaque attacker-controlled content. The behavior fires automatically on npm install without any user action, resulting in arbitrary code execution on the installer's Windows host.\n","state":0,"publishedAt":"2026-08-13T17:17:31+00:00","modifiedAt":"2026-08-13T17:30:11.1848568+00:00","affected":[{"ecosystem":"npm","name":"@opezneppelin/contracts","ranges":[],"versions":["5.0.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@opezneppelin/contracts/v/5.0.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13940","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13940","identifiers":["MAL-2026-13940"]},"retained":false,"historicalAffected":[]}],"coverage":[]}