CVE-2026-88038 cookies vulnerable to Set-Cookie attribute injection via unvalidated domain and path options
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
Description
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.
Upgrade path
19 packages: 2 fixed, 17 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/node-cookies(Debian 12) | = 0.8.0+~0.7.7-1; = 0.9.1+~0.9.2-1; = 0.9.2+~0.9.2-1; All versions | No fix listed | No fix yet |
| debian/node-cookies(Debian 13) | = 0.8.0+~0.7.7-1; = 0.9.1+~0.9.2-1; = 0.9.2+~0.9.2-1; All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform/automation-portal(Red Hat ansible_portal 2) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-monitoring-plugin-rhel9(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/rhdh/rhdh-hub-rhel9(Red Hat rhdh 1) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-dashboard-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-mod-arch-automl-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-mod-arch-autorag-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-mod-arch-eval-hub-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-mod-arch-gen-ai-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-mod-arch-maas-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-mod-arch-mlflow-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-mod-arch-model-registry-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| ubuntu/node-cookies(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-cookies(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-cookies(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-cookies(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/node-cookies(Debian 14) | < 0.9.2+~0.9.2-1; = 0.8.0+~0.7.7-1; = 0.9.1+~0.9.2-1 | 0.9.2+~0.9.2-1 | Fixed |
| npm cookies | < 0.9.2 | 0.9.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm cookies | < 0.9.2 | 0.9.2 |
| redhat/rhdh/rhdh-hub-rhel9(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/rhoai/odh-dashboard-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-automl-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-autorag-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-eval-hub-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-gen-ai-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-maas-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-mlflow-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-model-registry-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/openshift4/ose-monitoring-plugin-rhel9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/ansible-automation-platform/automation-portal(Red Hat:ansible_portal:2) | All versions | No fix listed |
| debian/node-cookies(Debian:12) | All versions | No fix listed |
| debian/node-cookies(Debian:12) | = 0.8.0+~0.7.7-1 | No fix listed |
| debian/node-cookies(Debian:12) | = 0.9.1+~0.9.2-1 | No fix listed |
| debian/node-cookies(Debian:12) | = 0.9.2+~0.9.2-1 | No fix listed |
| debian/node-cookies(Debian:13) | All versions | No fix listed |
| debian/node-cookies(Debian:13) | = 0.8.0+~0.7.7-1 | No fix listed |
| debian/node-cookies(Debian:13) | = 0.9.1+~0.9.2-1 | No fix listed |
| debian/node-cookies(Debian:13) | = 0.9.2+~0.9.2-1 | No fix listed |
| debian/node-cookies(Debian:14) | < 0.9.2+~0.9.2-1 | 0.9.2+~0.9.2-1 |
| debian/node-cookies(Debian:14) | = 0.8.0+~0.7.7-1 | No fix listed |
| debian/node-cookies(Debian:14) | = 0.9.1+~0.9.2-1 | No fix listed |
| ubuntu/node-cookies(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/node-cookies(Ubuntu:24.04) | All versions | No fix listed |
Show 2 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/node-cookies(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-cookies(Ubuntu:26.10) | All versions | No fix listed |
References
- github.com
- cna.openjsf.org
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2531413 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-88038 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-75398 third-party-advisory