Set-Cookie Attribute Injection in Node.js Library Cookies Affecting Koa
CVE-2026-88038

4.8MEDIUM

Key Information:

Vendor

Cookies

Status
Vendor
CVE Published:
10 September 2026

What is CVE-2026-88038?

The cookies library for Node.js, utilized by Koa, suffers from a Set-Cookie attribute injection vulnerability in versions prior to 0.9.2. This issue arises because the library inadequately validates domain and path options against appropriate character sets, allowing attackers to inject arbitrary cookie attributes. As a result, untrusted data can manipulate critical cookie settings such as SameSite, Secure, HttpOnly, or Domain. The vulnerability has been addressed in version 0.9.2, which implements stricter validation per the RFC 6265 character set specifications. Users are advised to refrain from using untrusted input for setting domain or path options as a temporary measure.

Affected Version(s)

cookies 0 < 0.9.2

cookies 0.9.2

References

CVSS V3.1

Score:
4.8
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

UlisesGascon
blakeembrey
Zelys-DFKH
.