Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-52595

7.7 · HIGH
Published Nov 19, 2024 fedoralovespython CWE-79 EPSS 0.48% (40th pctl)

Overview

CVE-2024-52595 is a high-severity vulnerability affecting fedoralovespython lxml_html_clean. It was published on November 19, 2024 and has a CVSS 3.1 base score of 7.7 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.7, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical Description

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, enabling malicious scripts to bypass the cleaning process. This vulnerability could lead to Cross-Site Scripting (XSS) attacks, compromising the security of users relying on lxml_html_clean in default configuration for sanitizing untrusted HTML content. Users employing the HTML cleaner in a security-sensitive context should upgrade to lxml 0.4.0, which addresses this issue. As a temporary mitigation, users can configure lxml_html_clean with the following settings to prevent the exploitation of this vulnerability. Via `remove_tags`, one may specify

Remediation

Check the references section for vendor advisories and patches from fedoralovespython. Update lxml_html_clean to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
fedoralovespython lxml_html_clean >= 0, < 0.4.0 Affected

Frequently Asked Questions

What is CVE-2024-52595?

CVE-2024-52595 is a high-severity vulnerability affecting fedoralovespython lxml_html_clean. It was published on November 19, 2024 and has a CVSS 3.1 base score of 7.7 (HIGH).

How severe is CVE-2024-52595?

This vulnerability has a CVSS 3.1 base score of 7.7, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2024-52595?

Check the references section for vendor advisories and patches from fedoralovespython. Update lxml_html_clean to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-52595?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-52595 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.