Vulnerability library
Security checkJanuary 09, 2023

Incorrect default cookie name and recommendation

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Low severitynpmcsrf-csrf

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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.

Recommendation

Update the csrf-csrf package to the latest compatible version. Followings are version details:

  • Affected version(s): < 2.2.1
  • Patched version(s): 2.2.1

References

Could your website be exposed too?

SmartScanner can check your website for Incorrect default cookie name and recommendation and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 09, 2023