# CVE-2026-115877: Twisted: HTTP Request Smuggling in twisted.web via a Bare CR or LF in a Header Value

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.4
- **CVSS:** 5.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.33% (percentile 18, 2026-11-26)
- **CWE:** CWE-444
- **Aliases:** GHSA-q7qq-6mhp-9rc4
- **Published:** 2026-10-23T20:25:12.031Z
- **Modified:** 2026-10-29T15:17:19.207Z

## Who should check

- Projects that depend on PyPI package twisted (\< 26.10.0rc1)
- Anyone running twisted \< 26.10.0rc1

## Description

Twisted is an event-based framework for internet applications, supporting Python 3.6+. Prior to 26.10.0rc1, twisted.web.http.HTTPChannel.headerReceived rejects a NUL byte in an HTTP header value but accepts a bare carriage return or bare line feed. Because Twisted splits header lines only on CRLF, a hidden Content-Length header can remain folded into another value while a lenient front end treats the bare character as a line terminator. The resulting framing disagreement can smuggle a following request past front-end access controls, poison a shared connection or cache, and expose a later client to the wrong response. This issue is an incomplete-fix residual of earlier Twisted request-smuggling protections. This issue is fixed in version 26.10.0rc1.

## Affected and fixed versions

- PyPI `twisted`: affected \< 26.10.0rc1; fixed 26.10.0rc1 (osv)
- twisted: \< 26.10.0rc1 (cvelist)

## Mitigation

- Upgrade twisted to 26.10.0rc1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-115877. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-115877.md
Affected: twisted < 26.10.0rc1
Fixed in: 26.10.0rc1

Steps:
1. Search this machine and project for twisted (PyPI), twisted: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-115877 being exploited?

There is no confirmed exploitation: CVE-2026-115877 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-115877?

Medium: CVSS 5.4 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-115877?

twisted \< 26.10.0rc1.

### Is there a fix for CVE-2026-115877?

Yes. Fixed in 26.10.0rc1. Upgrade twisted to 26.10.0rc1 or later.

### How do I check if I'm affected by CVE-2026-115877?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/twisted/twisted/security/advisories/GHSA-q7qq-6mhp-9rc4>
- patch: <https://github.com/twisted/twisted/pull/12755>
- patch: <https://github.com/twisted/twisted/commit/022b6f7feb5980166c71f54e2c0d8f4f21ff6e1a>
- patch: <https://github.com/twisted/twisted/commit/1616f702d36eda8990a5a5b22ad70fab140a7eb1>
- other: <https://github.com/twisted/twisted/releases/tag/twisted-26.10.0rc1>
- other: <https://github.com/twisted/twisted>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-115877>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-q7qq-6mhp-9rc4> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-115877> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-115877>
