Description
undici's retry interceptor can deliver a response whose body length does not match the Content-Length header exposed to the application after a retry or resume of a partial response. 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 malicious or faulty upstream can return a partial response with a mismatched framing header, close the socket early, and have the retry interceptor assemble a body of a different length while the original Content-Length stays attached. Applications that use the retry interceptor and forward upstream headers and bodies downstream, such as proxies or gateways, may then emit an invalid HTTP response with a stale Content-Length, leading to downstream response desynchronization, connection hangs, or response corruption. Exploitation requires the retry interceptor enabled, an upstream returning a mismatched partial response, and a downstream forwarder that does not remove or recalculate Content-Length. The issue is fixed in undici 6.28.0, 7.29.0, and 8.9.0.
Published: 2026-07-29
Score: 4.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw in undici's retry interceptor can return a response whose body length does not match the Content-Length header after a retry or partial resume. If an application forwards the upstream headers and body downstream without recalculating or removing the stale Content-Length, the downstream client receives an invalid HTTP response, which can lead to connection hangs, data corruption, or other disrupted communication.

Affected Systems

The vulnerability affects the undici library published by undici. Versions prior to 6.28.0, from 7.0.0 up to but excluding 7.29.0, and from 8.0.0 up to but excluding 8.9.0 are impacted. Applications that enable the retry interceptor and forward upstream responses, such as reverse proxies or gateways, are at risk.

Risk and Exploitability

The CVSS score of 4.8 indicates a moderate severity, and the EPSS score of less than 1% suggests a low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires an upstream server that supplies a partial response with a mismatched framing header, an undici client configured with the retry interceptor, and a downstream forwarder that does not adjust the Content-Length header. If these conditions are met, an attacker can induce downstream connection, loss of data integrity, or corruption.

Generated by OpenCVE AI on August 2, 2026 at 07:39 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade undici to version 6.28.0 or newer, or to 7.29.0 or 8.9.0, which contain the fix.
  • Disable the retry interceptor if it is not required for your application.
  • If acting as a forwarder, remove or recalculate the Content-Length header before sending responses downstream to ensure header consistency.

Generated by OpenCVE AI on August 2, 2026 at 07:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-8xcm-r25x-g524 undici vulnerable to downstream response desynchronization via retry interceptor
History

Wed, 05 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
First Time appeared Redhat
Redhat hummingbird
CPEs cpe:/a:redhat:hummingbird:1
Vendors & Products Redhat
Redhat hummingbird
References
Metrics threat_severity

None

threat_severity

Moderate


Thu, 30 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 29 Jul 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Undici
Undici undici
Vendors & Products Undici
Undici undici

Wed, 29 Jul 2026 21:15:00 +0000

Type Values Removed Values Added
Description undici's retry interceptor can deliver a response whose body length does not match the Content-Length header exposed to the application after a retry or resume of a partial response. 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 malicious or faulty upstream can return a partial response with a mismatched framing header, close the socket early, and have the retry interceptor assemble a body of a different length while the original Content-Length stays attached. Applications that use the retry interceptor and forward upstream headers and bodies downstream, such as proxies or gateways, may then emit an invalid HTTP response with a stale Content-Length, leading to downstream response desynchronization, connection hangs, or response corruption. Exploitation requires the retry interceptor enabled, an upstream returning a mismatched partial response, and a downstream forwarder that does not remove or recalculate Content-Length. The issue is fixed in undici 6.28.0, 7.29.0, and 8.9.0.
Title undici vulnerable to downstream response desynchronization via retry interceptor
Weaknesses CWE-444
References
Metrics cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: openjs

Published:

Updated: 2026-07-30T15:18:18.440Z

Reserved: 2026-07-23T04:21:23.161Z

Link: CVE-2026-16728

cve-icon Vulnrichment

Updated: 2026-07-30T14:20:10.317Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-29T21:17:46.833

Modified: 2026-08-04T14:06:21.650

Link: CVE-2026-16728

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-29T20:59:02Z

Links: CVE-2026-16728 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T07:45:03Z

Weaknesses
  • CWE-444

    Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')