Skip to main content

Malicious code in croft-node (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 13:05:47 UTC)
Source: GCVE Database
Product: croft-node

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

npmghsa
croft-node
Affected versions
=1.1.3

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: 08/19/2026, 16:23:31 UTC

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.

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-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 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