High
lxml-html-clean — security advisory
lxml_html_clean is a project for HTML cleaning functionalities copied from `lxml.html.clean`. Prior to version 0.4.0, the HTML Parser in lxml does not properly handle context-switching for special HTML tags such as ``, `` and `
- Products
- lxml-html-clean
- Affected versions
- 0.1.0-0ubuntu1, 0.1.1-1, 0.4.1-1, 0.4.2-1, 0.4.3-1, 0.4.4-1, 0.4.5-1
- Fixed versions
- Not specified
- CVEs
- CVE-2024-52595
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:24 UTC · Revision 1
Source evidence
lxml_html_clean is a project for HTML cleaning functionalities copied from `lxml.html.clean`. Prior to version 0.4.0, the HTML Parser in lxml does not properly handle context-switching for special HTML tags such as ``, `` and `
osv:UBUNTU-CVE-2024-52595
lxml-html-clean
Fixed versions: Not specified
lxml-html-clean
Fixed versions: Not specified
lxml-html-clean
Fixed versions: Not specified
lxml-html-clean
Fixed versions: Not specified
Complete source record
{
"id": "8aff11a97fa2dc088fb6931450bea3a7a184b2ca8bfce47b1c37e6bc901681e4",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-52595",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2024-52595",
"summary": "lxml_html_clean is a project for HTML cleaning functionalities copied from `lxml.html.clean`. Prior to version 0.4.0, the HTML Parser in lxml does not properly handle context-switching for special HTML tags such as ``, `` and `",
"evidence": "osv:UBUNTU-CVE-2024-52595",
"products": [
{
"name": {
"value": "lxml-html-clean",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.1.0-0ubuntu1",
"evidence": "/affected/0/versions"
},
{
"value": "0.1.1-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "lxml-html-clean",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.4.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "0.4.2-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "lxml-html-clean",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.4.4-1",
"evidence": "/affected/2/versions"
},
{
"value": "0.4.5-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "lxml-html-clean",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.4.2-1",
"evidence": "/affected/3/versions"
},
{
"value": "0.4.3-1",
"evidence": "/affected/3/versions"
},
{
"value": "0.4.4-1",
"evidence": "/affected/3/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2024-52595",
"aliases": [
"UBUNTU-CVE-2024-52595"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:H"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "lxml-html-clean",
"purl": "pkg:deb/ubuntu/lxml-html-clean?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"0.1.0-0ubuntu1",
"0.1.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-52595.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-lxml-html-clean",
"binary_version": "0.1.1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "lxml-html-clean",
"purl": "pkg:deb/ubuntu/lxml-html-clean?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"0.4.1-1",
"0.4.2-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-52595.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-lxml-html-clean",
"binary_version": "0.4.2-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "lxml-html-clean",
"purl": "pkg:deb/ubuntu/lxml-html-clean?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"0.4.4-1",
"0.4.5-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-52595.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-lxml-html-clean",
"binary_version": "0.4.5-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "lxml-html-clean",
"purl": "pkg:deb/ubuntu/lxml-html-clean?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"0.4.2-1",
"0.4.3-1",
"0.4.4-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-52595.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-lxml-html-clean",
"binary_version": "0.4.4-1"
}
]
}
}
],
"modified": "2026-10-17T12:54:35.134090668Z",
"provider": "osv",
"upstream": [
"CVE-2024-52595"
],
"references": [
"https://ubuntu.com/security/CVE-2024-52595",
"https://www.cve.org/CVERecord?id=CVE-2024-52595",
"https://github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-5jfw-gq64-q45f",
"https://github.com/fedora-python/lxml_html_clean/pull/19",
"https://github.com/fedora-python/lxml_html_clean/commit/c5d816f86eb3707d72a8ecf5f3823e0daa1b3808"
]
},
"related_cves": [
{
"value": "CVE-2024-52595",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 353529,
"published_at": "2024-11-19T22:15:00+00:00"
}