CVE-2022-39348CWE-79CWE-80

Twisted vulnerable to NameVirtualHost Host header injection

Medium · published October 26, 2022

CVSS v3.1
5.4
EPSS
1%
Percentile
69.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.4 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.01270 · 69.6th percentile
Weaknesses
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'); CWE-80 · Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
Published
2022-10-26T00:00Z
EPSS history
Timeline
  • 26 OCT 00:00Z
    Twisted vulnerable to NameVirtualHost Host header injection
    cvelistv5