CVE-2024-52595: Gptline · HTML Cleaner allows crafted scripts in special contexts like svg or math to pass through
Affects gptlineSource GCVE Database
Not known to be exploited · CVSS 7.7 High : upgrade to 1.0.8_5 soon.
Data as of 4 Dec 2026, 20:14 UTC
- Patch
- Available – fixed in 1.0.8_5, 0.4.0
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:HExploitation evidence
Disclosed: evidence found.
CVE published 13 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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 4 Dec 2026.
What to do
Upgrade gptline to 1.0.8_5; lxml-html-clean to 0.4.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewgptlinepkg:brew/gptlineOther threats | Affected
| Fixed in
|
PyPIlxml-html-cleanpkg:pypi/lxml-html-cleanOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Gptline to version 1.0.8_5 or later, which includes a fix for this vulnerability. As a temporary workaround, configure lxml_html_clean to remove or kill special context-switching tags such as <svg>, <math>, and <noscript> by using the 'remove_tags', 'kill_tags', or 'allow_tags' settings to restrict or exclude these tags from sanitized content.
Description
The HTML Parser in lxml used by Gptline's HTML Cleaner does not correctly handle context-switching for special HTML tags such as <svg>, <math>, and <noscript>. This parsing deviation allows malicious scripts embedded in these contexts to bypass the cleaning process, potentially leading to Cross-Site Scripting (XSS) attacks. The vulnerability affects versions >=1.0.8_4 and <1.0.8_5 of Gptline. A fix is available in version 1.0.8_5. Temporary mitigations include configuring the cleaner to remove or restrict these special tags.
References
- github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-5jfw-gq64-q45f (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2024-52595 (opens in a new tab)
- github.com/fedora-python/lxml_html_clean/pull/19 (opens in a new tab)
- github.com/fedora-python/lxml_html_clean/commit/c5d816f86eb3707d72a8ecf5f3823e0daa1b3808 (opens in a new tab)
- github.com/fedora-python/lxml_html_clean (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/lxml-html-clean/PYSEC-2024-160.yaml (opens in a new tab)