cookies is vulnerable to Set-Cookie Attribute Injection
48
Medium Risk
The cookies package serializes the domain and path options into the Set-Cookie response header. While cookie names and values reject the semicolon separator, domain and path are only checked against a permissive RFC 7230 field-content matcher that permits semicolons and other invalid characters. Untrusted values passed into these options can inject additional cookie attributes and override settings such as SameSite, Secure, HttpOnly, or Domain. The fix validates path and domain against RFC 6265.
You are affected if you are using a version that falls within the vulnerable range and you pass request-derived or otherwise untrusted values into the domain or path cookie options.
cookies is vulnerable to Set-Cookie Attribute Injection in versions 0.1.0 - 0.9.1.
Upgrade the cookies library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.