XSS in Twisted
CVE-2022-39348
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.
Vulnerability class: XSS (Cross-Site Scripting)
EPSS: 0.012 (67.2th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
Affected products
- Twisted — versions >= 0.9.4, < 22.10.0rc1
- Debian Debian_linux — versions 10.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security-advisories@github.com (Exploit, Patch, Third Party Advisory)
- security-advisories@github.com (Patch)
- security-advisories@github.com (Patch)
- security-advisories@github.com (mailing-list, Mailing List, Third Party Advisory)
- security-advisories@github.com (vendor-advisory, Third Party Advisory)
- af854a3a-2127-422b-91ae-364da2661108
Frequently asked questions
- What is CVE-2022-39348?
- CVE-2022-39348 is a medium-severity vulnerability in Twisted, classified under Cross-site Scripting. CVSS score: 5.4/10. Published 2022-10-26.
- How severe is CVE-2022-39348?
- Medium severity. CVSS v3 base score is 5.4 out of 10.
- Is CVE-2022-39348 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.