Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2024-52595: lxml_html_clean is a project for HTML cleaning functionalities copied from `lxml.html.clean`

43
This month
HIGH 7.7REMOTEUPGRADE

CVE-2024-52595 is a high-severity flaw (CVSS 7.7) affecting lxml html clean. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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 `<svg>`, `<math>` and `<noscript>`. This behavior deviates from how web browsers parse and interpret such tags. Specifically, content in CSS comments is ignored by lxml_html_clean but may be interpreted differently by web browsers, ena

Why this priority

  • High severity
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score7.7 (High)
Attack vectorNetwork (remote)
Attack complexityHigh
Privileges neededNone
User interactionNone
EPSS exploit chance0.5% (top 57%)
CISA exploited listNo
WeaknessCWE-79, CWE-83, CWE-184
Published2024-11-19
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · Vendor: fedoralovespython

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

fedoralovespython lxml html clean UPGRADE
Affected: < 0.4.0
Fixed in: 0.4.0
Safe to downgrade to: no unaffected older release
1. Check installed version
pip show lxml-html-clean
2. UPGRADE to 0.4.0
pip install --upgrade "lxml-html-clean>=0.4.0"
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2024-52595?

lxml html clean: upgrade to 0.4.0. Exact commands for each OS are on this page.

Is CVE-2024-52595 being exploited?

CVE-2024-52595 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2024-52595 affect?

CVE-2024-52595 affects lxml html clean. Severity is high (CVSS 7.7). 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 `<svg>`, `<math>` and `<n

How urgent is CVE-2024-52595?

Priority 43/100. High severity; Remotely exploitable, no login, no user action

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.