cve.bz

CVE-2026-88038 cookies cookies: Injection

4.8 mediumEPSS 0.3%

Medium (4.8) in cookies cookies. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

4.8 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 17th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-09-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-88038 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-88038?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-88038?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-88038 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
cookiesbefore 0.9.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13node-cookiesno fix listedDEBIAN-CVE-2026-88038
Debian14node-cookies0.9.2+~0.9.2-1DEBIAN-CVE-2026-88038
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 4 morenode-cookiesno fix listedUBUNTU-CVE-2026-88038

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Product Security has determined that this issue affects Red Hat OpenShift, Red Hat OpenShift AI, Red Hat Ansible Automation Platform Portal, and Red Hat Developer Hub products that bundle the cookies Node.js library (versions prior to 0.9.2). The vulnerability allows Set-Cookie attribute injection when applications pass untrusted or request-derived data to the domain or path options. An attacker could exploit this to override cookie security attributes such as SameSite, Secure, HttpOnly, or Domain, potentially leading to session hijacking or cross-site attacks. Products are only vulnerable if they pass user-controlled input to these specific options; applications using only static, hardcoded domain and path values are not affected.

Red Hat's mitigation

Update to cookies library version 0.9.2 or later. As a workaround, ensure that domain and path options for cookies are application-set constants rather than derived from untrusted input such as request headers or user-provided data. Review code that calls cookies.set() to verify that domain and path values are not influenced by external input.

ProductPackageStateAdvisory
Red Hat Developer Hub 1rhdh/rhdh-hub-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-dashboard-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-mod-arch-automl-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-mod-arch-autorag-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-mod-arch-eval-hub-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-mod-arch-gen-ai-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-mod-arch-maas-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-mod-arch-mlflow-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-mod-arch-model-registry-rhel9Fix deferred
Red Hat OpenShift Container Platform 4openshift4/ose-monitoring-plugin-rhel9Fix deferred
Self-service automation portal 2ansible-automation-platform/automation-portalFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-88038.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37).

References

Check your stackJSON