Malicious code in h2-codex (npm)
Description
The npm package 'h2-codex' was found to contain malicious code or dependencies with malicious code. Any system with this package installed should be considered fully compromised. Secrets and keys stored on affected systems must be rotated immediately from a secure environment. Removing the package alone may not fully remediate the compromise due to potential persistent malicious activity.
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 'h2-codex' package in the npm ecosystem contains malicious code or depends on malicious components. According to sources including Amazon Inspector and GHSA malware advisories, installation or execution of this package results in full compromise of the host system. This includes potential unauthorized access and control, necessitating immediate secret rotation and system remediation beyond simple package removal.
Potential Impact
Systems with the 'h2-codex' package installed are considered fully compromised, implying that attackers may have gained complete control. All sensitive credentials and keys stored on these systems are at risk and must be rotated. Removal of the package does not guarantee elimination of all malicious artifacts or backdoors introduced by the package.
Defensive Guidance
Remove the 'h2-codex' package immediately. Rotate all secrets and keys from a separate, uncompromised system. Conduct a thorough investigation and remediation of the affected system as it may remain compromised despite package removal.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15583
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-8h78-gfj3-qrp2"]
- Ecosystems
- ["npm"]
Threat ID: 6a95a108acd9273b4947eb2f
Added to database: 08/31/2026, 15:43:04 UTC
Last enriched: 09/08/2026, 17:23:49 UTC
Last updated: 10/02/2026, 22:17:44 UTC
Views: 45
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.
External Links
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.