Vulnerability library
Security checkApril 15, 2025

cookie accepts cookie name, path, and domain with out of bounds characters

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

Low severitynpmcookie

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The cookie name could be used to set other fields of the cookie, resulting in an unexpected cookie value. For example, serialize("userName=<script>alert('XSS3')</script>; Max-Age=2592000; a", value) would result in "userName=<script>alert('XSS3')</script>; Max-Age=2592000; a=test", setting userName cookie to <script> and ignoring value.

Recommendation

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

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

References

Could your website be exposed too?

SmartScanner can check your website for cookie accepts cookie name, path, and domain with out of bounds characters and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated April 15, 2025