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)

Published · last modified .

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.

EPSS exploit prediction

EPSS: 0.013 (69.3th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 69th percentile — 69.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2022-39348: held from 0.012 to 0.013.

EPSS over last 30 days · oldest: 0.012 · newest: 0.013 · change: +0.000

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

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.