CVEfocus › CVE database › CVE-2026-88038

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

CVSS 4.8 MediumEPSS 0.3% (higher than 10% of CVEs)Published 2026-09-10Updated 2026-09-10Assigner: openjs

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.

CWE-74

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

1Fixed
6Fix pending
3Under investigation

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-cookiesFix pendingUBUNTU-CVE-2026-88038
Ubuntu 26.04node-cookiesUnder investigationUBUNTU-CVE-2026-88038
Ubuntu 24.04node-cookiesUnder investigationUBUNTU-CVE-2026-88038
Ubuntu 22.04node-cookiesUnder investigationUBUNTU-CVE-2026-88038
Ubuntu 20.04node-cookiesFix pendingUBUNTU-CVE-2026-88038
Ubuntu 18.04node-cookiesFix pendingUBUNTU-CVE-2026-88038
Ubuntu 16.04node-cookiesFix pendingUBUNTU-CVE-2026-88038
Debian 14node-cookiesFixed0.9.2+~0.9.2-1DEBIAN-CVE-2026-88038
Debian 13node-cookiesFix pendingDEBIAN-CVE-2026-88038
Debian 12node-cookiesFix pendingDEBIAN-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.

References

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.