
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."