MAL-2026-10062: Malicious code in es6-codify (npm)
The es6-codify npm package contains malicious code that exfiltrates environment variables and other process information to an attacker-controlled server upon module load. This behavior occurs unconditionally in both CommonJS and ESM entrypoints, sending sensitive data such as CI secrets, cloud credentials, tokens, and database URLs. The package does not advertise any network functionality, indicating the network communication is malicious. Multiple versions of the package are affected.
AI Analysis
Technical Summary
The es6-codify package, advertised as a small ES6 utility library, includes malicious code in its entrypoints (dist/index.cjs and the ESM build) that performs an HTTPS POST request to a hardcoded attacker-controlled host. This request transmits a JSON payload containing the full process environment variables, current working directory, Node.js version, and command-line arguments. The exfiltration triggers immediately upon module import or require, regardless of the module system used. There is no legitimate network functionality in the package, confirming the network activity is unauthorized data exfiltration.
Potential Impact
Sensitive environment variables and runtime information are leaked to an attacker-controlled server whenever the package is loaded. This can lead to compromise of secrets such as cloud credentials, tokens, and database URLs, potentially enabling further attacks on the victim's infrastructure or data.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately remove and replace the es6-codify package from their projects. Avoid using this package and audit dependencies for malicious code. Monitor for any unauthorized access using leaked credentials. Patch status is not yet confirmed — check the vendor advisory or trusted sources for updates.
MAL-2026-10062: Malicious code in es6-codify (npm)
Description
The es6-codify npm package contains malicious code that exfiltrates environment variables and other process information to an attacker-controlled server upon module load. This behavior occurs unconditionally in both CommonJS and ESM entrypoints, sending sensitive data such as CI secrets, cloud credentials, tokens, and database URLs. The package does not advertise any network functionality, indicating the network communication is malicious. Multiple versions of the package are affected.
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 es6-codify package, advertised as a small ES6 utility library, includes malicious code in its entrypoints (dist/index.cjs and the ESM build) that performs an HTTPS POST request to a hardcoded attacker-controlled host. This request transmits a JSON payload containing the full process environment variables, current working directory, Node.js version, and command-line arguments. The exfiltration triggers immediately upon module import or require, regardless of the module system used. There is no legitimate network functionality in the package, confirming the network activity is unauthorized data exfiltration.
Potential Impact
Sensitive environment variables and runtime information are leaked to an attacker-controlled server whenever the package is loaded. This can lead to compromise of secrets such as cloud credentials, tokens, and database URLs, potentially enabling further attacks on the victim's infrastructure or data.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately remove and replace the es6-codify package from their projects. Avoid using this package and audit dependencies for malicious code. Monitor for any unauthorized access using leaked credentials. Patch status is not yet confirmed — check the vendor advisory or trusted sources for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10062
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50ba9768715ace435825c9
Added to database: 07/10/2026, 09:25:43 UTC
Last enriched: 07/10/2026, 10:11:04 UTC
Last updated: 07/10/2026, 10:11:04 UTC
Views: 2
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.