CVE-2022-39348
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| twisted | PyPI | 22.10.0rc1 |
| twisted | twisted | 22.10.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| twisted | twisted | >= 0.9.4, < 22.10.0rc1 |
| twisted | twisted | 0.9.4 |
| PyPI | Twisted | 0.9.4 |
| amazon:2 | python-twisted-web | 0 |
| amazon:2023 | python3-twisted+tls | 0 |
| amazon:2023 | python3-twisted | 0 |
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
References
- [debian-lts-announce] 20221128 [SECURITY] [DLA 3212-1] twisted security update mailing-list
- GLSA-202301-02 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-39348 advisory
- https://github.com/advisories/GHSA-vg46-2rrj-3647 advisory
- https://github.com/twisted/twisted url
- https://lists.debian.org/debian-lts-announce/2024/11/msg00028.html url