{"id":"MAL-2026-6566","revision":"1fb8f9a669a04f539c67b6ff8eabba10","records":[{"revision":"1fb8f9a669a04f539c67b6ff8eabba10","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-6566","aliases":[],"title":"Malicious code in date-uuid (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (58dffbe61370f78deed5bacbc8f6bc46a8a989f03da218643a41b52ed025fa6a)\nPackage advertised as a UUIDv7 helper, but on require()/import it auto-invokes extractDateISO() in bootstrap.js, which reads README.md from process.cwd(), extracts two specific lines (120 and 123), and base64-decodes them after prepending 'aH' and inserting 'Rz' to reconstruct an 'http...' URL (the prefix 'aHR0c' decodes to 'http'). The reconstructed URL is fetched, written to os.tmpdir() as temp_<timestamp>.vbs (the '.vbs' extension is split as 'v'+'b'+'s' to evade grep), and executed via child_process.exec. The behavior is unrelated to the advertised UUID functionality. Sourcing the payload URL from the caller's README rather than the package source decouples the attacker-controlled destination from the published artifact and enables staged/deniable deployment: a chained attack or a future README edit can change what gets executed without republishing the package. Obfuscation devices (string-splitting the script extension, base64 framing of the URL prefix) co-located with the fetch-and-exec path indicate deliberate evasion intent.\n","state":0,"publishedAt":"2026-06-29T04:09:22+00:00","modifiedAt":"2026-07-09T16:31:57.1255909+00:00","affected":[{"ecosystem":"npm","name":"date-uuid","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["1.0.1","1.0.0","1.0.3","1.0.2","1.0.4"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/date-uuid/v/1.0.1","https://www.npmjs.com/package/date-uuid/v/1.0.0","https://www.npmjs.com/package/date-uuid/v/1.0.3","https://www.npmjs.com/package/date-uuid/v/1.0.2","https://www.npmjs.com/package/date-uuid/v/1.0.4"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-6566","license":"OSV · upstream source license applies","key":"osv:MAL-2026-6566","identifiers":["MAL-2026-6566"]},"retained":false,"historicalAffected":[]}],"coverage":[]}