
CVE catalog
CVE-2026-88038
cookies is a Node.js library for reading and writing HTTP cookies, used by Koa via ctx.cookies. In versions before 0.9.2 the library validates the cookie name and value against character sets that rej
- Severity
- Medium · CVSS 4.8
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.25% · Oct 27, 2026
cookies is a Node.js library for reading and writing HTTP cookies, used by Koa via ctx.cookies. In versions before 0.9.2 the library validates the cookie name and value against character sets that reject the semicolon separator, but the domain and path options are checked only against a permissive RFC 7230 field-content matcher that allows semicolons, and both are written into the Set-Cookie header unescaped. An application that passes untrusted or request-derived data into the domain or path option can therefore inject additional cookie attributes, overriding SameSite, Secure, HttpOnly, or Domain on the cookies the application issues. This is a Set-Cookie attribute injection issue (CWE-74). The issue is fixed in cookies 0.9.2, which validates domain and path against RFC 6265 character sets. As a workaround, keep domain and path application-set rather than derived from untrusted input.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-cookies | sid | 0.9.2+~0.9.2-1 | fixed |
| Debian | node-cookies | forky | 0.9.2+~0.9.2-1 | fixed |
| Debian | node-cookies | trixie | 0.8.0+~0.7.7-1 | vulnerable |
| Debian | node-cookies | bookworm | 0.8.0+~0.7.7-1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-cookies | source | sid | 0.9.2+~0.9.2-1 | not yet assigned | Not reported | [1147405] |
| Debian | node-cookies | source | forky | 0.9.2+~0.9.2-1 | not yet assigned | Not reported | [1147405] |
| Debian | node-cookies | source | trixie | (unfixed) | not yet assigned | Not reported | [1147405] |
| Debian | node-cookies | source | bookworm | (unfixed) | not yet assigned | Not reported | [1147405] |
Notes
[trixie] node-cookies: Minor issue [bookworm] node-cookies: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [node-cookies]Affected
Details (2)
0.8.0+~0.7.7-1· all · bookwormAffected
nvd · node-cookies · debian · bookworm; nvd · node-cookies · debian · 12
0.8.0+~0.7.7-1· all · bookwormAffected
nvd · node-cookies · debian · bookworm; nvd · node-cookies · debian · 12
[Debian 13 (Trixie)]
- [node-cookies]Affected
Details (2)
0.8.0+~0.7.7-1· all · trixieAffected
nvd · node-cookies · debian · 13
0.8.0+~0.7.7-1· all · trixieAffected
nvd · node-cookies · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-88038]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-88038]
- [https://security-tracker.debian.org/tracker/CVE-2026-88038]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-88038.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]