CVE-2022-39348
MEDIUM 5.4CVSS 3.1Twisted vulnerable to NameVirtualHost Host header injection
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.
- Published
- 26 Oct 2022
- Last modified
- 7 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79CWE-80
- Also known as
- GHSA-vg46-2rrj-3647PYSEC-2026-1055
- Sources
- NVDJSONOSV GHSA-vg46-2rrj-3647JSONOSV PYSEC-2026-1055JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | twisted | twistedcpe:2.3:a:twisted:twisted:*:*:*:*:*:*:*:* |
>= 0.9.4, < 22.10.0 | 22.10.0 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | PyPI | twisted | >= 0.9.4, < 22.10.0rc1 | 22.10.0rc1 |
References
- https://github.com/twisted/twisted/commit/f2f5e81c03f14e253e85fe457e646130780db40b · Patch, WEB
- https://github.com/twisted/twisted/commit/f49041bb67792506d85aeda9cf6157e92f8048f4 · Patch, WEB
- https://github.com/twisted/twisted/security/advisories/GHSA-vg46-2rrj-3647 · Exploit, Patch, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2022/11/msg00038.html · Mailing List, Third Party Advisory, WEB
- https://security.gentoo.org/glsa/202301-02 · Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2024/11/msg00028.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-39348 · ADVISORY
- https://github.com/twisted/twisted · PACKAGE
- https://pypi.org/project/twisted · PACKAGE
- https://github.com/advisories/GHSA-vg46-2rrj-3647 · ADVISORY
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 26 Oct 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 26 Oct 2022)