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.4, the _has_sneaky_javascript() method strips backslashes before checking for dangerous CSS keywords. This causes CSS Unicode escape sequences to bypass the @import and expression() filters, allowing external CSS loading or XSS in older browsers. This issue has been patched in version 0.4.4.
- 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-2026-28348
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:06 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.4, the _has_sneaky_javascript() method strips backslashes before checking for dangerous CSS keywords. This causes CSS Unicode escape sequences to bypass the @import and expression() filters, allowing external CSS loading or XSS in older browsers. This issue has been patched in version 0.4.4.
osv:UBUNTU-CVE-2026-28348
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": "4a73c4d60ecfaaa8c4d36328c2f4da81c2f9e1d27653b1b644125840f63f7398",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-28348",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-28348",
"summary": "lxml_html_clean is a project for HTML cleaning functionalities copied from `lxml.html.clean`. Prior to version 0.4.4, the _has_sneaky_javascript() method strips backslashes before checking for dangerous CSS keywords. This causes CSS Unicode escape sequences to bypass the @import and expression() filters, allowing external CSS loading or XSS in older browsers. This issue has been patched in version 0.4.4.",
"evidence": "osv:UBUNTU-CVE-2026-28348",
"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": "medium",
"structured": {
"id": "UBUNTU-CVE-2026-28348",
"aliases": [
"UBUNTU-CVE-2026-28348"
],
"metrics": [
{
"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/2026/UBUNTU-CVE-2026-28348.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/2026/UBUNTU-CVE-2026-28348.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/2026/UBUNTU-CVE-2026-28348.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/2026/UBUNTU-CVE-2026-28348.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-lxml-html-clean",
"binary_version": "0.4.4-1"
}
]
}
}
],
"modified": "2026-10-17T12:58:07.676019271Z",
"provider": "osv",
"upstream": [
"CVE-2026-28348"
],
"references": [
"https://ubuntu.com/security/CVE-2026-28348",
"https://www.cve.org/CVERecord?id=CVE-2026-28348",
"https://github.com/fedora-python/lxml_html_clean/commit/2ef732667ddbc74ea59847bcf24b75809aaeed3b",
"https://github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-hw26-mmpg-fqfg"
]
},
"related_cves": [
{
"value": "CVE-2026-28348",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 358180,
"published_at": "2026-03-05T20:16:00+00:00"
}