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…

MAL-2026-6700: Malicious code in module-index-cache (npm)

0
Critical
Published: 06/30/2026 (06/30/2026, 21:00:00 UTC)
Source: GCVE Database
Product: module-index-cache

Description

The npm package 'module-index-cache' versions 1.0.0, 1.0.1, and 1.0.2 contains malicious code that executes during installation. The package's install scripts unconditionally run code that harvests sensitive environment variables, npm authentication tokens, git configuration, and other host data. This information is exfiltrated to an attacker-controlled server. The package also includes scripts to facilitate dependency confusion attacks by publishing under multiple aliases to target private registries.

Affected software

npmghsa
module-index-cache
Affected versions
=1.0.1=1.0.0=1.0.2

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: 06/30/2026, 23:39:31 UTC

Technical Analysis

The 'module-index-cache' npm package (versions 1.0.0, 1.0.1, and 1.0.2) contains malicious install scripts declared in package.json that run unconditionally during 'npm install'. These scripts collect sensitive information from the host environment, including environment variables, npm auth tokens, dotenv files, git config, and process environment data. The collected data is base64-encoded and sent via HTTP requests to a hardcoded external IP address. Additional scripts in the package automate publishing under various aliases to enable dependency confusion attacks against private npm registries. This results in unauthorized data exfiltration and potential compromise of systems installing this package.

Potential Impact

Any system that installs the affected versions of this package will have sensitive environment data, authentication tokens, and configuration files exfiltrated to an attacker-controlled server. This compromises the confidentiality of secrets and may lead to further unauthorized access or lateral movement within affected environments. The package's aliasing and dependency confusion techniques increase the risk of inadvertent installation in private registry contexts.

Mitigation Recommendations

No official patch or remediation is currently documented for this malicious package. Users should immediately audit their dependencies and remove any usage of 'module-index-cache' versions 1.0.0, 1.0.1, and 1.0.2. Avoid installing this package and its aliases (curse-dependent, spectral-corsair, @spectral-corsair/cursed-modules). Review and rotate any potentially exposed secrets, including npm authentication tokens and environment variables. Monitor for any unauthorized access resulting from this exposure.

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-6700
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a4452d127e9c797198dfbe2

Added to database: 06/30/2026, 23:35:45 UTC

Last enriched: 06/30/2026, 23:39:31 UTC

Last updated: 07/01/2026, 00:56:22 UTC

Views: 3

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