CVE-2026-88038cookies vulnerable to Set-Cookie attribute injection via unvalidated domain and path…
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | node-cookies | Fix pending | UBUNTU-CVE-2026-88038 | |
| Ubuntu 26.04 | node-cookies | Under investigation | UBUNTU-CVE-2026-88038 | |
| Ubuntu 24.04 | node-cookies | Under investigation | UBUNTU-CVE-2026-88038 | |
| Ubuntu 22.04 | node-cookies | Under investigation | UBUNTU-CVE-2026-88038 | |
| Ubuntu 20.04 | node-cookies | Fix pending | UBUNTU-CVE-2026-88038 | |
| Ubuntu 18.04 | node-cookies | Fix pending | UBUNTU-CVE-2026-88038 | |
| Ubuntu 16.04 | node-cookies | Fix pending | UBUNTU-CVE-2026-88038 | |
| Debian 14 | node-cookies | Fixed | 0.9.2+~0.9.2-1 | DEBIAN-CVE-2026-88038 |
| Debian 13 | node-cookies | Fix pending | DEBIAN-CVE-2026-88038 | |
| Debian 12 | node-cookies | Fix pending | DEBIAN-CVE-2026-88038 |
What the vendor says
As published in the CVE record by openjs, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- cookies: affected: before 0.9.2, 0.9.2 not affected; fixed in
0.9.2
References
- https://github.com/pillarjs/cookies/security/advisories/GHSA-x44v-5gxf-r6hf
- https://cna.openjsf.org/security-advisories.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.