Malware in web-dotenv
Malware discovered in the npm package web-dotenv. Systems with this package installed are considered fully compromised and require immediate remediation.
- Disclosed
- Last updated
- Blast radius
- Any system with web-dotenv installed or running
- Ecosystems
- Attack vectors
- Affected entities
- web-dotenv
The npm package web-dotenv has been identified as containing malware. According to the GitHub Advisory (GHSA-7x3f-hjp7-r53g), any computer with this package installed or running should be considered fully compromised.\n\nThe advisory recommends that all secrets and keys stored on affected computers be rotated immediately from a different, uncompromised system. While the package should be removed, there is no guarantee that removal will eliminate all malicious software that may have been installed as a result of the package installation, as the attacker may have gained full control of the system.\n\nThis is a critical supply chain incident affecting the npm ecosystem, with potential impact to all users and systems that have installed or executed this package.
Indicators of compromise
- Packages
- web-dotenv
Remediation
- Immediately isolate affected systems from the network
- Rotate all secrets, API keys, and credentials from a different, uncompromised computer
- Remove the web-dotenv package from all affected systems
- Conduct a full security audit and malware scan of affected systems
- Review system logs and access logs for signs of unauthorized activity
- Consider full system reimaging if compromise is confirmed
- Notify all users and stakeholders who may have been affected
Sources
- GitHub Advisory GHSA-7x3f-hjp7-r53g · GitHub Advisory Database
Cite this entry
"Malware in web-dotenv." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed June 12, 2026; last updated June 12, 2026. https://supplychainattack.org/incident/malware-in-web-dotenv-10ohv7
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- activecritical
Malware in transportator
The npm package transportator contains malware that grants full system compromise to attackers. Any computer with this package installed or running should be considered fully compromised and all secrets and keys rotated immediately from a different machine.
npmCompromised package - containedcritical
Malware in vite-react-toolkit
The npm package vite-react-toolkit contained malware that provided full system compromise to attackers. Any computer with this package installed should be considered fully compromised and all secrets and keys rotated immediately from a different machine.
npmCompromised package - resolvedcritical
Malware in @malwguy/ecto-corsair-whisper-3d2a7c
The npm package @malwguy/ecto-corsair-whisper-3d2a7c contains malware that grants full system compromise to an outside entity. Any computer with this package installed or running should be considered fully compromised.
npmCompromised package - containedcritical
Malware in coral-wraith
Malware was discovered in the npm package coral-wraith. Systems with the package installed or running should be considered fully compromised and require immediate remediation.
npmCompromised package