Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in es6-codify (npm)

0
Critical
Published: 07/09/2026 (07/09/2026, 15:46:22 UTC)
Source: GCVE Database
Product: es6-codify

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (e7ae2aa828c8ed2c3ec71480536fd07d9c19f3c698c3b095eafb41206ff3a75f) The package advertises itself as a small ES6 string/array/object utility library, but both entrypoints (dist/index.cjs and the ESM build) execute a top-level call on require/import that opens an HTTPS POST to the hardcoded host j5dcw95v-3000.inc1.devtunnels.ms at path /post-d. The request body is a JSON blob containing the full process.env of the importing process, together with process.cwd(), process.version, and process.argv. Any environment variable held by the installer at the moment this package is loaded (CI secrets, cloud credentials, tokens, database URLs) is transmitted to the attacker-controlled Microsoft dev-tunnel host. The exfiltration fires unconditionally on module load and is duplicated across the CJS and ESM entrypoints so it triggers regardless of how the package is resolved. There is no network functionality in the advertised API, so the network I/O has no benign explanation. ## Source: ghsa-malware (b254a2963094593aae850663d576f1cd6126f45cb4b217b05c373461dc05e7c0) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Affected software

npmghsa
es6-codify
Affected versions
=1.2.0=2.2.0=2.0.0=1.0.1=2.1.0=1.3.0=1.1.0=1.4.0

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

AILast updated: 07/10/2026, 10:11:04 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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/27/2026, 17:32:19 UTC

Views: 36

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses