CVE-2026-88038
cookies vulnerable to Set-Cookie attribute injection via unvalidated domain and path options
Mitigation
- Upgrade cookies to 0.9.2 or later.
Who should check
- Anyone running cookies < 0.9.2
Vulnerability facts
- Affected
- cookies < 0.9.2
- Fixed in
- cookies 0.9.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 4.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: None
- EPSS
- 0.25% chance of exploitation in 30 days (percentile 10, 2026-11-26)
- CWE
- CWE-74
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| cookies | < 0.9.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-88038. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-88038.md Affected: cookies < 0.9.2 Fixed in: cookies 0.9.2 Steps: 1. Search this machine and project for cookies: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2026-88038 being exploited?
There is no confirmed exploitation: CVE-2026-88038 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-88038?
Medium: CVSS 4.8 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-88038?
cookies < 0.9.2.
Is there a fix for CVE-2026-88038?
Yes. Fixed in cookies 0.9.2. Upgrade cookies to 0.9.2 or later.
How do I check if I'm affected by CVE-2026-88038?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.