CVE-2026-16729
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
Description
A flaw was found in undici, where its `setCookie` function does not fully sanitize cookie attributes. A remote attacker could exploit this by providing specially crafted input to the `domain` or `unparsed` fields, leading to the injection of additional cookie attributes. This vulnerability can allow an attacker to bypass Cross-Site Request Forgery (CSRF) protections or manipulate critical cookie attributes like `Secure` and `HttpOnly`, potentially compromising user sessions or data integrity in applications such as multi-tenant or reverse-proxy servers.
Metrics
Weakness classes (CWE)
CWE-74Class
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
cwe.mitre.org →
Reanalysis & status changes
Chronological NVD audit events for this CVE — reanalyses, CVSS updates, CPE diffs.
- Initial Analysis2026-08-05 15:18 UTC· nvd@nist.gov
- CVSS V3.1: AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- CPE Configuration: OR *cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:* versions from (including) 7.0.0 up to (excluding) 7.29.0 *cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:* versions from (including) 8.0.0 up to (excluding) 8.9.0 *cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:* versions up to (excluding) 6.28.0
- Reference Type: openjs: https://cna.openjsf.org/security-advisories.html Types: Vendor Advisory
- Reference Type: openjs: https://github.com/nodejs/undici/security/advisories/GHSA-v3r7-h72x-cjcm Types: Vendor Advisory
- New CVE Received2026-07-29 17:16 UTC· ce714d77-add3-4f53-aff5-83d477b104bb
- Affected: undici
- Description: undici's setCookie function does not fully sanitize cookie attributes. In undici before 6.28.0, from 7.0.0 up to before 7.29.0, and from 8.0.0 up to before 8.9.0, a domain value is not checked for semicolons and entries in the unparsed array are not sanitized, so attacker-influenced input can inject additional cookie attributes. For example, a domain value containing a semicolon can append attributes such as SameSite, and an unparsed entry can inject attributes such as HttpOnly, without the caller setting them. Applications that pass user-controlled input to these fields, such as multi-tenant or reverse-proxy servers that scope session cookies to a tenant-supplied domain, can have SameSite CSRF protections bypassed, or the Secure, HttpOnly, and SameSite attributes forced, stripped, or overridden. The issue is fixed in undici 6.28.0, 7.29.0, and 8.9.0.
- CVSS V3.1: AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- CWE: CWE-74
Affected products
Products and version ranges extracted from the vendor/CERT advisory. A range like „<4.14.6“ implies the update recommendation „upgrade to 4.14.6 or later“.
bitnami
node-min23.0.0
bitnami
node-min25.0.0
nodejs
undici7.0.0 – 7.29.0
nodejs
undici8.0.0 – 8.9.0
nodejs
undici6.28.0
npm
undici7.0.0
npm
undici8.0.0
npm
undici
References & sources
- https://github.com/nodejs/undici/security/advisories/GHSA-v3r7-h72x-cjcmweb
- https://nvd.nist.gov/vuln/detail/CVE-2026-16729advisory
- https://github.com/nodejs/undici/commit/10d93fc332f2c8c161982dec3833201de29891b5web
- https://github.com/nodejs/undici/commit/3bf91ddb493e853957f3a58e155326a668ab8aefweb
- https://github.com/nodejs/undici/commit/af7484043ee075a6f216da0ad77e1dac55199235web
- https://cna.openjsf.org/security-advisories.htmlweb
- https://github.com/nodejs/undicipackage
- https://github.com/nodejs/undici/releases/tag/v6.28.0web
- https://github.com/nodejs/undici/releases/tag/v7.29.0web
- https://github.com/nodejs/undici/releases/tag/v8.9.0web
- https://nodejs.org/en/blog/vulnerability/july-2026-security-releases
- https://nvd.nist.gov/vuln/detail/CVE-2026-58045web
- https://nvd.nist.gov/vuln/detail/CVE-2026-56847web
- https://nvd.nist.gov/vuln/detail/CVE-2026-58040web
- https://nvd.nist.gov/vuln/detail/CVE-2026-56850web
- https://github.com/nodejs/undici/security/advisories/GHSA-jr45-8vmc-qm54web
- https://nvd.nist.gov/vuln/detail/CVE-2026-14643advisory
- https://github.com/nodejs/undici/commit/85a240551c9feb8b8a0ecc56c84b2b3015add8a9web
- https://github.com/nodejs/undici/commit/cb105d7c79069150982fa11acada0dd94a60dbbcweb
- https://nvd.nist.gov/vuln/detail/CVE-2026-58043web
Linked CVEs
- CVE-2026-58045
A flaw was found in Node.js.
mediumCVSSv3 6.2 - CVE-2026-58044
A flaw was found in Node.js.
lowCVSSv3 3.7 - CVE-2026-58043
A flaw in the Node.js Permission Model allows attackers to bypass --permission restrictions, enabling unauthorized read or write access t…
highCVSSv3 8.4 - CVE-2026-58042
A denial of service (DoS) vulnerability in Node.js allows a remote attacker to crash the application.
mediumCVSSv3 5.9 - CVE-2026-58041
A flaw was found in Node.js's `node:sqlite` module.
mediumCVSSv3 5.3 - CVE-2026-58040
A flaw was found in Node.js.
mediumCVSSv3 6.3 - CVE-2026-58039
A flaw was found in Node.js.
lowCVSSv3 3.3 - CVE-2026-56850
A flaw was found in Node.js.
mediumCVSSv3 4.4 - CVE-2026-56847
A flaw in the Node.js Permission Model allows trace_events.createTracing().enable() to bypass --allow-fs-write restrictions and write tra…
mediumCVSSv3 6.1 - CVE-2026-56846
A flaw was found in Node.js's handling of HTTP/2.
highCVSSv3 7.5 - CVE-2026-16728
A flaw was found in undici.
mediumCVSSv3 6.5 - CVE-2026-15157
A flaw was found in undici.
mediumCVSSv3 5.4 - CVE-2026-14643
A flaw was found in undici.
highCVSSv3 7.5 - CVE-2026-13697
A flaw was found in undici.
criticalCVSSv3 9.1