Intel

AIKIDO-2026-280256

cookies is vulnerable to Set-Cookie Attribute Injection

Set-Cookie Attribute InjectionCVE-2026-88038 Published Yesterday

48

Medium Risk

This Affects:

JScookies
0.1.0 - 0.9.1
Fixed in 0.9.2
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

cookies is vulnerable to Set-Cookie Attribute Injection in versions 0.1.0 - 0.9.1.

How to fix this

Upgrade the cookies library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform