Skip to main content
VulnerabilityPublished

CVE-2026-28348: fedora-python lxml_html_clean · Improper Encoding or Escaping of Output

Affects fedora-python lxml_html_cleanSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 6.1 Medium : upgrade to 0.4.4 when convenient.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 3.1 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 16% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.4.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade lxml_html_clean and fedora-python/lxml_html_clean to 0.4.4.

Affected software

ProductAffectedFixed in
fedora-pythonlxml_html_cleanAffected
  • <0.4.4
Fixed in
  • 0.4.4
GitHubfedora-python/lxml_html_cleanpkg:github/fedora-python/lxml_html_cleanOther threatsAffected
  • <0.4.4
Fixed in
  • 0.4.4

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Organizations should immediately upgrade lxml_html_clean to version 0.4.4 or later, where the vulnerability is patched. Review and audit all instances where lxml_html_clean is used for HTML sanitization to ensure no legacy versions remain in production. Implement additional defense-in-depth measures such as Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts and loading of external CSS resources. Employ rigorous input validation and output encoding on all user-supplied content, especially in web applications accessible via older browsers. Conduct security testing focusing on CSS injection and XSS vectors to detect any residual weaknesses. Educate developers about the risks of improper encoding and escaping, and encourage the use of well-maintained libraries for sanitization. If upgrading immediately is not feasible, consider applying temporary filters or disabling features that rely on vulnerable sanitization until patched.

Description

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.

References

Community reviews

Loading reviews…