MAL-2026-5541Malicious code in @w2d/web-components (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | @w2d/web-components | 2.999.999 |
{"modified":"2026-06-11T02:26:12Z","published":"2026-06-11T01:57:04Z","schema_version":"1.7.4","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","affected":[{"package":{"ecosystem":"npm","name":"@w2d/web-components"},"versions":["2.999.999"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"domains":["929u6o01dc28rl4mend089t9b0hr5ht6.oastify.com","eyjwa2cioijadzjkl3dlyi1jb21wb25lbnrziiwiag9zdci6in.929u6o01dc28rl4mend089t9b0hr5ht6.oastify.com"],"evidence_files":[{"path":"postinstall.js","sha256":"4d84f2e09d17eb306c121e5ba7de7813b853258610328a263ae5873c3ea8da96","tlsh":"7f2174fba275c52c08a221d00747373a673bc229ea499080a95c8307ef9a27880979f8"},{"path":"package.json","sha256":"a4d05d79c3980107f36060b9d58d5c09b0306f274e38d4bf60df7bf91fb60cfd","tlsh":"c3d0c23049200a2374c82a980c37544b56e349274008291827cb2098079f17a44bf25e"}],"package_integrity":[{"filename":"web-components-2.999.999.tgz","hashes":{"sha1":"f9ba7211e066c2f702968d8febcc0e08d7944949","sha512_sri":"sha512-YuZNKVDjLYSNANIhKWC3ETDYQD10cgUC9dpJP/skb/5sva+EVNh/EbLxlMOh3k6HDodyRvX6eucVOaxAnTzcbQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@w2d/web-components/v/2.999.999"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-005370","import_time":"2026-06-11T02:24:28.349039531Z","modified_time":"2026-06-11T01:57:04Z","sha256":"2b8292b80f3e692b249561a14d94d2dfa0196f2377e7eee027b8dd630d251bd1","source":"amazon-inspector","versions":["2.999.999"]},{"id":"IN-MAL-2026-005371","import_time":"2026-06-11T02:24:28.424563817Z","modified_time":"2026-06-11T01:57:04Z","sha256":"c6caf705e5dc4933e633197662744ab0909b77a70e12276408b155e89bbd5fc7","source":"amazon-inspector","versions":["2.999.999"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0