MAL-2026-10059: Malicious code in cookie-parser-es (npm)
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.
AI Analysis
Technical Summary
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.
MAL-2026-10059: Malicious code in cookie-parser-es (npm)
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
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 '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.
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 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.