CVE-2022-39348Twisted
Medium 5.4
Follow: this CVE · Twisted · Twisted We alert you by email or Slack (account required).
- Priority
- 33
- CVSS 3.1
- 5.4
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 68
- Auth required
- Yes
- Published
- Oct 26, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
What happens
Twisted is an event-based framework for internet applications. Started with version 0.9.4, when the host header does not match a configured host `twisted.web.vhost.NameVirtualHost` will return a `NoResource` resource which renders the Host header unescaped into the 404 response allowing HTML and script injection. In practice this should be very difficult to exploit as being able to modify the Host header of a normal HTTP request implies that one is already in a privileged position. This issue was fixed in version 22.10.0rc1. There are no known workarounds.
What to do
- Apply the vendor's security update for Twisted.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | twisted |
≥ 0.9.4 < 22.10.0rc1 |
22.10.0rc1 |
pip install "twisted>=22.10.0rc1" |
| PyPI | twisted |
≥ 0.9.4 < 22.10.0rc1 |
22.10.0rc1 |
pip install "twisted>=22.10.0rc1" |
Per OSV / GitHub Advisories (GHSA-vg46-2rrj-3647, PYSEC-2026-1055). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| twisted | twisted | ≥ 0.9.4 < 22.10.0 |
| debian | debian_linux | 10.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Exploit Patch Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- security.gentoo.org Third Party Advisory
- lists.debian.org