VDB

CVE-2022-39348

CVE-2022-39348 PUBLISHED CVSS 5.4 MEDIUM

Twisted vulnerable to NameVirtualHost Host header injection

Reported by github_m · Published October 26, 2022

twisted is fixed in 22.10.0rc1 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
twistedPyPI22.10.0rc1
twistedtwisted22.10.0

Risk scores

CVSS 3.1
5.4
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Affected products

VendorProductVersions
twistedtwisted>= 0.9.4, < 22.10.0rc1
twistedtwisted0.9.4
PyPITwisted0.9.4
amazon:2python-twisted-web0
amazon:2023python3-twisted+tls0
amazon:2023python3-twisted0

Timeline

  • Oct 26, 2022 CVE Published
  • Oct 27, 2022 EPSS Score (30 in total, the first dated here)
  • Nov 4, 2025 CVE Updated
  • Mar 9, 2026 Security Advisory (3 in total, the first dated here)
  • Jun 17, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-39348
vulnetix vdb fixes CVE-2022-39348

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-39348/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›