5.6 MEDIUM
- CVSS version (CVSS): 3.1
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): High (H)
- Privileges Required (PR): None (N)
- User Interaction (UI): None (N)
- Scope (S): Unchanged (U)
- Confidentiality (C): Low (L)
- Integrity (I): Low (L)
- Availability (A): Low (L)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): High (H)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): None (N)
- Modified Confidentiality (MC): Low (L)
- Modified Scope (MS): Unchanged (U)
- Modified Integrity (MI): Low (L)
- Modified Availability (MA): Low (L)
by @LeSuisse Activity log
- Created suggestion
- @LeSuisse accepted
- @LeSuisse published on GitHub
HTTPX2: Conflicting Content-Length and Transfer-Encoding headers can be auto-generated
HTTPX2 is a next generation HTTP client for Python. Prior to 2.11.0, Request._prepare() in src/httpx2/httpx2/_models.py can add a body-derived Content-Length header to a request that already contains a caller-supplied Transfer-Encoding header because its setdefault() processing checks each default header independently rather than treating the two framing headers as mutually exclusive. Fixed-size byte, JSON, form, and known-length multipart bodies can therefore be serialized over HTTP/1.1 with both headers, allowing request smuggling or connection desynchronization when downstream intermediaries disagree about which framing header takes precedence. This issue is fixed in version 2.11.0.
References
-
https://github.com/pydantic/httpx2/security/advisories/GHSA-pf96-p4fj-6566 x_refsource_CONFIRM
-
https://github.com/pydantic/httpx2/pull/1137 x_refsource_MISC
-
https://github.com/pydantic/httpx2/releases/tag/v2.11.0 x_refsource_MISC
Affected products
- ==< 2.11.0
Matching in nixpkgs
pkgs.python313Packages.httpx2
A next generation HTTP client for Python
-
nixos-26.05 -
- nixos-26.05-small 2.3.0
pkgs.python314Packages.httpx2
A next generation HTTP client for Python
-
nixos-26.05 -
- nixos-26.05-small 2.3.0
Package maintainers
-
@mweinelt Martin Weinelt <hexa@darmstadt.ccc.de>