Malicious code in create-cf-token (npm)
The npm package create-cf-token versions 1.1.2 and 1.1.3 contains malicious code or depends on a package with malicious code. This malware, known as Miasma, is a self-propagating worm that spreads by abusing binding.gyp files to execute code during package installation, bypassing typical security inspections. It attempts to exfiltrate credentials and OIDC tokens for cloud and registry services and propagates by compromising other packages or injecting backdoors into GitHub repositories.
AI Analysis
Technical Summary
The create-cf-token npm package versions 1.1.2 and 1.1.3 were found to contain malicious code or dependencies with malicious code. The malware, identified as Miasma, uses weaponized binding.gyp files to achieve execution during package installation, circumventing security tools that only inspect lifecycle scripts. Upon execution, it attempts to steal credentials and OIDC tokens for various cloud and registry services. It further propagates by compromising other npm packages managed by the stolen accounts or by committing backdoor files to GitHub repositories, enabling widespread infection and persistence.
Potential Impact
Malicious code in the affected create-cf-token package versions can lead to credential and token theft for cloud and registry services. This enables unauthorized access and potential compromise of cloud resources and npm packages. The malware's self-propagation mechanism can cause widespread infection across the npm ecosystem and associated GitHub repositories, increasing the risk of supply chain attacks.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix or removal is confirmed, users should avoid using create-cf-token versions 1.1.2 and 1.1.3. Review and audit dependencies for signs of compromise and consider rotating any potentially exposed credentials or tokens. Monitor for updates from the package maintainers or security advisories for remediation.
Malicious code in create-cf-token (npm)
Description
The npm package create-cf-token versions 1.1.2 and 1.1.3 contains malicious code or depends on a package with malicious code. This malware, known as Miasma, is a self-propagating worm that spreads by abusing binding.gyp files to execute code during package installation, bypassing typical security inspections. It attempts to exfiltrate credentials and OIDC tokens for cloud and registry services and propagates by compromising other packages or injecting backdoors into GitHub repositories.
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 create-cf-token npm package versions 1.1.2 and 1.1.3 were found to contain malicious code or dependencies with malicious code. The malware, identified as Miasma, uses weaponized binding.gyp files to achieve execution during package installation, circumventing security tools that only inspect lifecycle scripts. Upon execution, it attempts to steal credentials and OIDC tokens for various cloud and registry services. It further propagates by compromising other npm packages managed by the stolen accounts or by committing backdoor files to GitHub repositories, enabling widespread infection and persistence.
Potential Impact
Malicious code in the affected create-cf-token package versions can lead to credential and token theft for cloud and registry services. This enables unauthorized access and potential compromise of cloud resources and npm packages. The malware's self-propagation mechanism can cause widespread infection across the npm ecosystem and associated GitHub repositories, increasing the risk of supply chain attacks.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix or removal is confirmed, users should avoid using create-cf-token versions 1.1.2 and 1.1.3. Review and audit dependencies for signs of compromise and consider rotating any potentially exposed credentials or tokens. Monitor for updates from the package maintainers or security advisories for remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5240
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4f6c7068715ace4315aa52
Added to database: 07/09/2026, 09:40:00 UTC
Last enriched: 07/09/2026, 10:07:48 UTC
Last updated: 07/30/2026, 04:19:57 UTC
Views: 23
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.