# CVE-2026-88038: cookies vulnerable to Set-Cookie attribute injection via unvalidated domain and path options

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.8
- **CVSS:** 4.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.25% (percentile 10, 2026-11-28)
- **CWE:** CWE-74
- **Published:** 2026-09-10T12:11:58.674Z
- **Modified:** 2026-09-10T19:57:48.533Z

## Who should check

- Anyone running cookies \< 0.9.2

## 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

- cookies: \< 0.9.2 (cvelist)

## Mitigation

- Upgrade cookies to 0.9.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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-28).

### 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.

## References

- vendor: <https://github.com/pillarjs/cookies/security/advisories/GHSA-x44v-5gxf-r6hf>
- other: <https://cna.openjsf.org/security-advisories.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-88038>

HTML: <https://flawdb.com/CVE-2026-88038> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-88038>
