Read the docs
TI-2022-26661 Aliases GHSA-jjmg-x456-w976

Incorrect default cookie name and recommendation

Priority LOW 38Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

### Impact _What kind of vulnerability is it? Who is impacted?_ The default cookie name (and documentation recommendation) was prefixed with `Host__` instead of `__Host-`. The point of this prefix is for additional security, to ensure that, when no domain option is provided in the cookie options, we can guarantee the cookie came from the correct domain. ### Patches _Has the problem been patched? What versions should users upgrade to?_ Yes, the problem is patched from version 2.2.1, this will not be back ported, but you can use the workaround described below. ### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_ You can work around this by providing a custom `cookieName` as part of the options, which is correctly prefixed with `__Host-`. ### References _Are there any links users can visit to find out more?_ https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html#cookie-with-__host-prefix ### For more information If you have any questions or comments about this advisory: * Reach out on the [Psifi Solutions Discord](https://psifisolutions.com/discord) in the `#psifi-support` channel

Why it matters now

Fix Fixed csrf-csrf (npm): 2.2.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—csrf-csrf (npm)before 2.2.12.2.1Patch availableGHSA-jjmg-x456-w976
  • csrf-csrf (npm) Vendor— Affected before 2.2.1 Fixed in 2.2.1 Patch available GHSA-jjmg-x456-w976

Remediation

  • Fix · GHSA-jjmg-x456-w976 csrf-csrf (npm) Fixed in 2.2.1 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-jjmg-x456-w976

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences