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

[CVE catalog]

Severity
Medium · CVSS 4.8CVSS: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.

DistributionPackageReleaseVersionStatus
Debiannode-cookiessid0.9.2+~0.9.2-1fixed
Debiannode-cookiesforky0.9.2+~0.9.2-1fixed
Debiannode-cookiestrixie0.8.0+~0.7.7-1vulnerable
Debiannode-cookiesbookworm0.8.0+~0.7.7-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-cookiessourcesid0.9.2+~0.9.2-1not yet assignedNot reported[1147405]
Debiannode-cookiessourceforky0.9.2+~0.9.2-1not yet assignedNot reported[1147405]
Debiannode-cookiessourcetrixie(unfixed)not yet assignedNot reported[1147405]
Debiannode-cookiessourcebookworm(unfixed)not yet assignedNot reported[1147405]

[Debian bug #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 · bookworm

      Affected

      nvd · node-cookies · debian · bookworm; nvd · node-cookies · debian · 12

    • 0.8.0+~0.7.7-1 · all · bookworm

      Affected

      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 · trixie

      Affected

      nvd · node-cookies · debian · 13

    • 0.8.0+~0.7.7-1 · all · trixie

      Affected

      nvd · node-cookies · debian · 13

Observed:

References