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 scanRelated Issues
- Knowns Unrestricted Path Traversal leading to out-of-bounds arbitrary .md file read, write, and deletion in MCP Docs + M - CVE-2026-86439
- Agnai File Disclosure Vulnerability: JSON via Path Traversal - CVE-2024-47170
- moment vulnerable to Path Traversal via crafted non-string locale name - CVE-2026-17495
- Agnai vulnerable to Relative Path Traversal in Image Upload - CVE-2024-47171


