# CVE-2022-39348: Twisted vulnerable to NameVirtualHost Host header injection

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.59%, higher than 76% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-10-26T00:00:00.000Z
- Modified: 2026-07-07T11:56:35.965Z
- Also known as: GHSA-vg46-2rrj-3647, PYSEC-2026-1055
- Weaknesses: CWE-79, CWE-80
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- twisted twisted: >= 0.9.4, < 22.10.0rc1; from 0.9.4 before 22.10.0
- twisted (PyPI): from 0.9.4 before 22.10.0rc1
- debian debian_linux: 10.0

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: 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`

## References

- <https://github.com/twisted/twisted/security/advisories/GHSA-vg46-2rrj-3647> (exploit, patch, third-party-advisory, web)
- <https://github.com/twisted/twisted/commit/f2f5e81c03f14e253e85fe457e646130780db40b> (patch, web)
- <https://github.com/twisted/twisted/commit/f49041bb67792506d85aeda9cf6157e92f8048f4> (patch, 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, vendor-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)

## Sources

- CVE List: [CVE-2022-39348](https://www.cve.org/CVERecord?id=CVE-2022-39348), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-vg46-2rrj-3647](https://github.com/advisories/GHSA-vg46-2rrj-3647), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2022-39348](https://nvd.nist.gov/vuln/detail/CVE-2022-39348), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1055](https://osv.dev/vulnerability/PYSEC-2026-1055), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2022-39348 · Whole record: https://cve.day/CVE-2022-39348.json · Rebuilt by cve.day 2026-11-25T22:58:16.029Z
