Malicious code in configration (npm)
Description
The npm package 'configration' impersonates the legitimate 'configuration' package with a one-character typo. When loaded, it spawns a child process that decodes a base64-obfuscated URL and sends all environment variables, including secrets and tokens, to a remote attacker-controlled endpoint. It then executes arbitrary JavaScript code received from that endpoint, enabling remote code execution on the host system.
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 'configration' npm package is a malicious package that mimics the 'configuration' package by a one-character omission in its name. Upon requiring the package and invoking its exported middleware, it detaches a child process that decodes a base64-obfuscated URL stored under decoy environment variable names. This child process sends the entire environment variables of the host process to a remote URL via a POST request with a custom header. The response from the remote server is executed as JavaScript code with access to Node's require function, enabling arbitrary remote code execution. This creates a combined credential exfiltration and remote code execution vulnerability triggered simply by loading the package.
Potential Impact
This malicious package exfiltrates all environment variables, potentially including sensitive credentials, tokens, and CI secrets, to an attacker-controlled server. It also allows the attacker to execute arbitrary code on the victim's system with the privileges of the Node.js process loading the package. This can lead to full system compromise, data theft, and further attacks within the environment.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately remove the 'configration' package from their dependencies and avoid installing similarly named or suspicious packages. Verify package names carefully before installation. Use trusted sources and package integrity verification tools. Monitor for any unexpected network activity or code execution related to this package. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-7009
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-6vxp-hr6q-qq8g"]
- Ecosystems
- ["npm"]
Threat ID: 6a96f319acd9273b49e496eb
Added to database: 09/01/2026, 15:45:29 UTC
Last enriched: 09/08/2026, 09:37:40 UTC
Last updated: 10/03/2026, 11:34:28 UTC
Views: 34
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.