- 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 tags to remove - their content is moved to their parents' tags. Via `kill_tags`, one may specify tags to be removed completely. Via `allow_tags`, one may restrict the set of permissible tags, excluding context-switching tags like `<svg>`, `<math>` and `<noscript>`.
- Source
- security-advisories@github.com
- NVD status
- Analyzed
CVSS 3.1
- Type
- Primary
- Base score
- 6.1
- Impact score
- 2.7
- Exploitability score
- 2.8
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Severity
- MEDIUM
- Hype score
- Not currently trending
#exploit 1. CVE-2024-5907, CVE-2024-9469: LPE/Privilege Escalation in Palo Alto Cortex XDR Agent https://t.co/teWBxDq5vL 2. CVE 2024-37397: Ivanti Endpoint Manager XXE https://t.co/59J5Dp5p4i 3. CVE-2024-52595: Mutation XSS & lxml_html_clean bypass https://t.co/sCkAYp2K9R
@VIPER92929
24 Dec 2024
1 Impression
0 Retweets
0 Likes
0 Bookmarks
0 Replies
0 Quotes
#exploit 1. CVE-2024-5907, CVE-2024-9469: LPE/Privilege Escalation in Palo Alto Cortex XDR Agent https://t.co/eOgm0GoRDz 2. CVE 2024-37397: Ivanti Endpoint Manager XXE https://t.co/A1RzujyZcY 3. CVE-2024-52595: Mutation XSS & lxml_html_clean bypass https://t.co/MYQZHdMB4x
@ksg93rd
13 Dec 2024
50 Impressions
0 Retweets
1 Like
1 Bookmark
0 Replies
0 Quotes
CVE-2024-52595 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… https://t.co/aiZyqZ69i7
@CVEnew
20 Nov 2024
54 Impressions
0 Retweets
0 Likes
0 Bookmarks
0 Replies
0 Quotes
My first CVE: CVE-2024-52595, just got published! It's a full bypass of an HTML sanitizer used by a few thousand GitHub projects, found during a pentest. Pretty cool one so you may enjoy reversing it. https://t.co/ucTHn2ulXr
@J0R1AN
19 Nov 2024
532 Impressions
0 Retweets
19 Likes
4 Bookmarks
0 Replies
0 Quotes
[
{
"nodes": [
{
"negate": false,
"cpeMatch": [
{
"criteria": "cpe:2.3:a:fedoralovespython:lxml_html_clean:*:*:*:*:*:python:*:*",
"vulnerable": true,
"matchCriteriaId": "CC41E12F-6FF6-4533-99FD-08846511435B",
"versionEndExcluding": "0.4.0"
}
],
"operator": "OR"
}
]
}
]