twisted — security advisory
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.
- Products
- twisted
- Affected versions
- Not specified
- Fixed versions
- 22.4.0-4
- CVEs
- CVE-2022-39348
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 14:58 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2022-39348
twisted
Fixed versions: 22.4.0-4
twisted
Fixed versions: 22.4.0-4
twisted
Fixed versions: 22.4.0-4
Complete source record
{
"id": "19906d0d4abf6b92b401265b429a4c3ed6675ba9ab9778b67d26d8d26a4906a7",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-39348",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2022-39348",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2022-39348",
"products": [
{
"name": {
"value": "twisted",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "22.4.0-4",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "twisted",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "22.4.0-4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "twisted",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "22.4.0-4",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "DEBIAN-CVE-2022-39348",
"aliases": [
"DEBIAN-CVE-2022-39348"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "22.4.0-4"
}
]
}
],
"package": {
"name": "twisted",
"purl": "pkg:deb/debian/twisted?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-39348.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "22.4.0-4"
}
]
}
],
"package": {
"name": "twisted",
"purl": "pkg:deb/debian/twisted?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-39348.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "22.4.0-4"
}
]
}
],
"package": {
"name": "twisted",
"purl": "pkg:deb/debian/twisted?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-39348.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-15T08:02:40.667370842Z",
"provider": "osv",
"upstream": [
"CVE-2022-39348"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2022-39348"
]
},
"related_cves": [
{
"value": "CVE-2022-39348",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 323942,
"published_at": "2022-10-26T20:15:10.58+00:00"
}