Malicious code in date-uuid (npm)
The npm package 'date-uuid' versions 1.0.0 and 1.0.1 contains malicious code that executes an attacker-controlled script. Upon import, it reads specific lines from the caller's README.md, reconstructs a URL, fetches a script from that URL, saves it as a temporary .vbs file, and executes it. This behavior is unrelated to the advertised UUID functionality and uses obfuscation techniques to evade detection.
AI Analysis
Technical Summary
The 'date-uuid' npm package (versions 1.0.0 and 1.0.1) is a malicious package that, when required or imported, automatically invokes a function that reads the caller's README.md file to extract encoded URL data. It reconstructs an HTTP URL from base64-encoded fragments, fetches a payload script from this URL, writes it to the operating system's temporary directory as a Visual Basic script file (using string splitting to evade detection), and executes it via child_process.exec. This staged attack mechanism decouples the malicious payload from the package itself, allowing dynamic payload changes without republishing the package. The obfuscation and execution of external code represent deliberate evasion and malicious intent.
Potential Impact
This package enables remote code execution on the system importing it by fetching and running an attacker-controlled script. This can lead to full system compromise, data theft, or further malware deployment. The attack is stealthy due to obfuscation and reliance on external payloads, increasing the risk of undetected exploitation.
Mitigation Recommendations
No official patch or fix is currently available for this malicious package. The recommended mitigation is to avoid using the 'date-uuid' package versions 1.0.0 and 1.0.1. Remove these versions from your projects and replace them with trusted alternatives. Monitor your environment for any execution of unexpected scripts and audit dependencies for malicious code. Since this is a malicious package, do not attempt to use or trust it.
Malicious code in date-uuid (npm)
Description
The npm package 'date-uuid' versions 1.0.0 and 1.0.1 contains malicious code that executes an attacker-controlled script. Upon import, it reads specific lines from the caller's README.md, reconstructs a URL, fetches a script from that URL, saves it as a temporary .vbs file, and executes it. This behavior is unrelated to the advertised UUID functionality and uses obfuscation techniques to evade detection.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The 'date-uuid' npm package (versions 1.0.0 and 1.0.1) is a malicious package that, when required or imported, automatically invokes a function that reads the caller's README.md file to extract encoded URL data. It reconstructs an HTTP URL from base64-encoded fragments, fetches a payload script from this URL, writes it to the operating system's temporary directory as a Visual Basic script file (using string splitting to evade detection), and executes it via child_process.exec. This staged attack mechanism decouples the malicious payload from the package itself, allowing dynamic payload changes without republishing the package. The obfuscation and execution of external code represent deliberate evasion and malicious intent.
Potential Impact
This package enables remote code execution on the system importing it by fetching and running an attacker-controlled script. This can lead to full system compromise, data theft, or further malware deployment. The attack is stealthy due to obfuscation and reliance on external payloads, increasing the risk of undetected exploitation.
Mitigation Recommendations
No official patch or fix is currently available for this malicious package. The recommended mitigation is to avoid using the 'date-uuid' package versions 1.0.0 and 1.0.1. Remove these versions from your projects and replace them with trusted alternatives. Monitor your environment for any execution of unexpected scripts and audit dependencies for malicious code. Since this is a malicious package, do not attempt to use or trust it.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6566
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a42ed7827e9c797199395cc
Added to database: 06/29/2026, 22:11:04 UTC
Last enriched: 07/10/2026, 13:07:14 UTC
Last updated: 07/30/2026, 04:41:09 UTC
Views: 38
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.