Malicious code in croft-node (npm)
The croft-node npm package version 1.1.3 contains malicious code executed during installation. Its postinstall script fetches and executes remote code from an attacker-controlled endpoint, enabling remote code execution on the installer's host. This behavior is unrelated to the package's documented functionality as an in-memory cache. No official patch or remediation guidance is currently provided.
AI Analysis
Technical Summary
The croft-node package (npm ecosystem) version 1.1.3 declares a postinstall script that performs an outbound fetch to a Cloudflare Workers endpoint controlled by an attacker. The fetched response specifies a function name and argument, which the script executes globally, effectively enabling remote-controlled code execution at install time. The script also exposes Node.js's createRequire function globally, expanding the attacker's capabilities. This malicious behavior is hidden within a package advertised as an in-memory keyed cache with TTL/LRU, which should not require network activity during installation.
Potential Impact
Successful installation of croft-node version 1.1.3 results in remote code execution on the installer's system, allowing an attacker to run arbitrary code with the privileges of the user performing the npm install. This can lead to system compromise, data theft, or further malware deployment.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing croft-node version 1.1.3. Verify package integrity and source before installation. Consider using trusted package registries and scanning tools to detect malicious packages. Monitor vendor advisories for updates or fixes.
Malicious code in croft-node (npm)
Description
The croft-node npm package version 1.1.3 contains malicious code executed during installation. Its postinstall script fetches and executes remote code from an attacker-controlled endpoint, enabling remote code execution on the installer's host. This behavior is unrelated to the package's documented functionality as an in-memory cache. No official patch or remediation guidance is currently provided.
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 croft-node package (npm ecosystem) version 1.1.3 declares a postinstall script that performs an outbound fetch to a Cloudflare Workers endpoint controlled by an attacker. The fetched response specifies a function name and argument, which the script executes globally, effectively enabling remote-controlled code execution at install time. The script also exposes Node.js's createRequire function globally, expanding the attacker's capabilities. This malicious behavior is hidden within a package advertised as an in-memory keyed cache with TTL/LRU, which should not require network activity during installation.
Potential Impact
Successful installation of croft-node version 1.1.3 results in remote code execution on the installer's system, allowing an attacker to run arbitrary code with the privileges of the user performing the npm install. This can lead to system compromise, data theft, or further malware deployment.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing croft-node version 1.1.3. Verify package integrity and source before installation. Consider using trusted package registries and scanning tools to detect malicious packages. Monitor vendor advisories for updates or fixes.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12358
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a735742bf8831d539159bc5
Added to database: 08/05/2026, 15:31:14 UTC
Last enriched: 08/19/2026, 16:23:31 UTC
Last updated: 09/15/2026, 10:35:09 UTC
Views: 19
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.