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-10059: Malicious code in cookie-parser-es (npm)

0
High
Published: 07/09/2026 (07/09/2026, 16:19:35 UTC)
Source: GCVE Database
Product: cookie-parser-es

Description

The npm package 'cookie-parser-es' version 1.0.7 is a malicious typosquatting package impersonating the popular 'cookie-parser' middleware. It copies metadata and author information from the legitimate package to deceive users. The package loads an undeclared dependency 'cookie-ease' at runtime, which executes code immediately when the middleware is used. Additionally, it declares a mutable dependency 'set-cookie-ease' pinned to 'latest', allowing the attacker to change the payload after initial scans. This behavior matches a supply-chain attack pattern designed to execute malicious code in dependent projects.

Affected software

npmghsa
cookie-parser-es
Affected versions
=1.0.7

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: 07/10/2026, 10:15:30 UTC

Technical Analysis

The 'cookie-parser-es' npm package version 1.0.7 is a malicious typosquatting package that impersonates the widely-used 'cookie-parser' middleware by copying its README, API surface, author metadata, and repository information. It introduces a runtime execution of an undeclared dependency 'cookie-ease' which runs code upon middleware initialization. Furthermore, it includes a mutable dependency 'set-cookie-ease' pinned to 'latest', enabling the attacker to swap the payload dynamically after registry scans. This combination of impersonation, undeclared runtime dependencies, and mutable dependencies aligns with known supply-chain attack techniques targeting npm ecosystems.

Potential Impact

Users who install and use 'cookie-parser-es' version 1.0.7 risk executing malicious code in their applications due to the runtime loading of undeclared and mutable dependencies controlled by the attacker. This can lead to compromise of the application environment, data leakage, or further malicious actions depending on the payload delivered by the attacker. The package's impersonation of a trusted middleware increases the likelihood of accidental installation.

Mitigation Recommendations

Avoid using the 'cookie-parser-es' package entirely. Instead, use the legitimate 'cookie-parser' package from the official npm registry. Since this is a malicious typosquatting package, no official patch exists. Users should audit their dependencies for this package and remove it if found. Additionally, avoid installing packages with suspicious or similar names to popular libraries and verify package authenticity before use.

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

Threat ID: 6a50baa968715ace43585332

Added to database: 07/10/2026, 09:26:01 UTC

Last enriched: 07/10/2026, 10:15:30 UTC

Last updated: 07/10/2026, 10:15:30 UTC

Views: 2

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