Skip to content
Heist/ feed
UnratedFix available

DEBIAN-CVE-2026-88038

Type: advisorySource: OSV1 source record

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.

Announced Source revision 1
Original source ↗

DEBIAN-CVE-2026-88038

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:DEBIAN-CVE-2026-88038

node-cookies

Source reference: /affected/0/package/name

Affected versions
0.8.0+~0.7.7-1

Source reference: /affected/0/versions

0.9.1+~0.9.2-1

Source reference: /affected/0/versions

0.9.2+~0.9.2-1

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

node-cookies

Source reference: /affected/1/package/name

Affected versions
0.8.0+~0.7.7-1

Source reference: /affected/1/versions

0.9.1+~0.9.2-1

Source reference: /affected/1/versions

0.9.2+~0.9.2-1

Source reference: /affected/1/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

node-cookies

Source reference: /affected/2/package/name

Affected versions
0.8.0+~0.7.7-1

Source reference: /affected/2/versions

0.9.1+~0.9.2-1

Source reference: /affected/2/versions

Fixed versions
0.9.2+~0.9.2-1

Source reference: /affected/2/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "node-cookies",
      "purl": "pkg:deb/debian/node-cookies?arch=source&distro=bookworm",
      "ecosystem": "Debian:12"
    },
    "versions": [
      "0.8.0+~0.7.7-1",
      "0.9.1+~0.9.2-1",
      "0.9.2+~0.9.2-1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-88038.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "node-cookies",
      "purl": "pkg:deb/debian/node-cookies?arch=source&distro=trixie",
      "ecosystem": "Debian:13"
    },
    "versions": [
      "0.8.0+~0.7.7-1",
      "0.9.1+~0.9.2-1",
      "0.9.2+~0.9.2-1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-88038.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "0.9.2+~0.9.2-1"
          }
        ]
      }
    ],
    "package": {
      "name": "node-cookies",
      "purl": "pkg:deb/debian/node-cookies?arch=source&distro=forky",
      "ecosystem": "Debian:14"
    },
    "versions": [
      "0.8.0+~0.7.7-1",
      "0.9.1+~0.9.2-1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-88038.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#58547 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement