{"id":"MAL-2026-5541","summary":"Malicious code in @w2d/web-components (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (2b8292b80f3e692b249561a14d94d2dfa0196f2377e7eee027b8dd630d251bd1)\nThe package targets the @w2d scope with an artificially high version (2.999.999) — the canonical dependency-confusion shape designed to outrank an internal registry's real package. On `npm install`, postinstall.js collects host identity (os.hostname(), os.userInfo(), process.cwd(), process.platform), base64-encodes the payload, and exfiltrates it to a hardcoded Burp Collaborator OAST domain `929u6o01dc28rl4mend089t9b0hr5ht6.oastify.com` over both HTTPS GET (postinstall.js:28) and DNS lookup (postinstall.js:31). Comments in the file self-describe the package as a dependency-confusion PoC against Allwyn AG / win2day. Regardless of the author's stated bug-bounty framing, any installer whose registry configuration resolves the public @w2d/web-components instead of the intended internal package will silently beacon host/user/cwd identifiers to the attacker-controlled OAST host on install.\n","modified":"2026-06-11T02:31:32.260585277Z","published":"2026-06-11T01:57:04Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["2.999.999"],"id":"IN-MAL-2026-005370","import_time":"2026-06-11T02:24:28.349039531Z","modified_time":"2026-06-11T01:57:04Z","sha256":"2b8292b80f3e692b249561a14d94d2dfa0196f2377e7eee027b8dd630d251bd1"},{"import_time":"2026-06-11T02:24:28.424563817Z","modified_time":"2026-06-11T01:57:04Z","sha256":"c6caf705e5dc4933e633197662744ab0909b77a70e12276408b155e89bbd5fc7","source":"amazon-inspector","versions":["2.999.999"],"id":"IN-MAL-2026-005371"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@w2d/web-components/v/2.999.999"}],"affected":[{"package":{"name":"@w2d/web-components","ecosystem":"npm","purl":"pkg:npm/%40w2d%2Fweb-components"},"versions":["2.999.999"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@w2d/web-components/MAL-2026-5541.json","indicators":{"evidence_files":[{"sha256":"4d84f2e09d17eb306c121e5ba7de7813b853258610328a263ae5873c3ea8da96","tlsh":"7f2174fba275c52c08a221d00747373a673bc229ea499080a95c8307ef9a27880979f8","path":"postinstall.js"},{"sha256":"a4d05d79c3980107f36060b9d58d5c09b0306f274e38d4bf60df7bf91fb60cfd","tlsh":"c3d0c23049200a2374c82a980c37544b56e349274008291827cb2098079f17a44bf25e","path":"package.json"}],"package_integrity":[{"filename":"web-components-2.999.999.tgz","hashes":{"sha1":"f9ba7211e066c2f702968d8febcc0e08d7944949","sha512_sri":"sha512-YuZNKVDjLYSNANIhKWC3ETDYQD10cgUC9dpJP/skb/5sva+EVNh/EbLxlMOh3k6HDodyRvX6eucVOaxAnTzcbQ=="}}],"domains":["929u6o01dc28rl4mend089t9b0hr5ht6.oastify.com","eyjwa2cioijadzjkl3dlyi1jb21wb25lbnrziiwiag9zdci6in.929u6o01dc28rl4mend089t9b0hr5ht6.oastify.com"]},"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}