Vulnerability DatabaseGHSA-jjmg-x456-w976

GHSA-jjmg-x456-w976
JavaScript vulnerability analysis and mitigation

Overview

The vulnerability (GHSA-jjmg-x456-w976) was identified in the csrf-csrf npm package, affecting versions 2.2.0 and below. The issue involves an incorrect default cookie name and documentation recommendation where the cookie prefix was incorrectly set as 'Host' instead of 'Host-'. This vulnerability was discovered and disclosed on October 8, 2022, and primarily affects applications using the default cookie name configuration in the csrf-csrf package (GitHub Advisory).

Technical details

The vulnerability stems from an implementation error in the default cookie naming convention. The package used 'Host' as a prefix instead of the security-recommended 'Host-' prefix. The purpose of this prefix is to provide additional security by ensuring that when no domain option is provided in the cookie options, the system can guarantee the cookie originated from the correct domain. The severity of this issue has been rated as Low (GitHub Advisory).

Impact

The incorrect prefix implementation could potentially affect the security guarantees provided by the cookie prefix mechanism. When using the default cookie name, the security benefit of domain verification through the cookie prefix was not properly implemented, potentially allowing cookies to be processed without the intended domain verification safeguards (OWASP Cheatsheet).

Mitigation and workarounds

The issue has been patched in version 2.2.1 of the csrf-csrf package. For users unable to upgrade immediately, a workaround is available by providing a custom cookieName as part of the options, ensuring it is correctly prefixed with 'Host-'. The fix involves updating the default cookie name and documentation to use the correct 'Host-' prefix (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-55182CRITICAL10
  • JavaScriptJavaScript
  • react-server-dom-turbopack
NoYesDec 03, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-66412HIGH8.5
  • JavaScriptJavaScript
  • @angular/compiler
NoYesDec 01, 2025
CVE-2025-66415MEDIUM6.9
  • JavaScriptJavaScript
  • @fastify/reply-from
NoYesDec 01, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management