Live threats

All CVEs / Twisted

CVE-2022-39348Twisted

Medium 5.4

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
Weakness (CWE)
CWE-79, CWE-80
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Twisted.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
twistedtwisted≥ 0.9.4 < 22.10.0
debiandebian_linux10.0

Official sources

References

Links published by the sources. Open them with care.