Skip to content
Heist/ feed
Back to feed
Medium

node-cookies — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-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 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.

Products
node-cookies
Affected versions
0.5.0-1, 0.5.0-1ubuntu1, 0.5.0-3, 0.8.0+~0.7.7-1, 0.8.0-1, 0.8.0-2, 0.9.1+~0.9.2-1
Fixed versions
Not specified
CVEs
CVE-2026-88038
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:25 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-88038

core-osv · Original source

Published 10 Sept 2026, 13:20 UTC

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.

osv:UBUNTU-CVE-2026-88038

node-cookies

Fixed versions: Not specified

node-cookies

Fixed versions: Not specified

node-cookies

Fixed versions: Not specified

node-cookies

Fixed versions: Not specified

node-cookies

Fixed versions: Not specified

node-cookies

Fixed versions: Not specified

node-cookies

Fixed versions: Not specified

Complete source record
{
  "id": "f9dec24c0b2a4bffe62d50692133274a364e6c4ac45226ac768734c754857e56",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-88038",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-88038",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-88038",
    "products": [
      {
        "name": {
          "value": "node-cookies",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.5.0-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-cookies",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.5.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.5.0-1ubuntu1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-cookies",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.5.0-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.8.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.8.0-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-cookies",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.8.0-2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.8.0+~0.7.7-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-cookies",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.8.0+~0.7.7-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-cookies",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.9.1+~0.9.2-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-cookies",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.8.0+~0.7.7-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "0.9.1+~0.9.2-1",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-88038",
      "aliases": [
        "UBUNTU-CVE-2026-88038"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-cookies",
            "purl": "pkg:deb/ubuntu/node-cookies?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "0.5.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-88038.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-cookies",
                "binary_version": "0.5.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-cookies",
            "purl": "pkg:deb/ubuntu/node-cookies?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "0.5.0-1",
            "0.5.0-1ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-88038.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-cookies",
                "binary_version": "0.5.0-1ubuntu1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-cookies",
            "purl": "pkg:deb/ubuntu/node-cookies?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "0.5.0-3",
            "0.8.0-1",
            "0.8.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-88038.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-cookies",
                "binary_version": "0.8.0-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-cookies",
            "purl": "pkg:deb/ubuntu/node-cookies?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.8.0-2",
            "0.8.0+~0.7.7-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-88038.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-cookies",
                "binary_version": "0.8.0+~0.7.7-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-cookies",
            "purl": "pkg:deb/ubuntu/node-cookies?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.8.0+~0.7.7-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-88038.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-cookies",
                "binary_version": "0.8.0+~0.7.7-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-cookies",
            "purl": "pkg:deb/ubuntu/node-cookies?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.9.1+~0.9.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-88038.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-cookies",
                "binary_version": "0.9.1+~0.9.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-cookies",
            "purl": "pkg:deb/ubuntu/node-cookies?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.8.0+~0.7.7-1",
            "0.9.1+~0.9.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-88038.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-cookies",
                "binary_version": "0.9.1+~0.9.2-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:01:14.972586220Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-88038"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-88038",
        "https://www.cve.org/CVERecord?id=CVE-2026-88038",
        "https://github.com/pillarjs/cookies/security/advisories/GHSA-x44v-5gxf-r6hf",
        "https://cna.openjsf.org/security-advisories.html"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-88038",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 361366,
  "published_at": "2026-09-10T13:20:00+00:00"
}