Skip to main content
VulnerabilityPublished Updated

CVE-2026-49825: Gptline · `lxml_html_clean.Cleaner` does not strip `javascript:` URLs from namespaced URL attributes

Affects gptlineSource GCVE Database

0
Compare

Mentioned vulnerabilities

Authoritative record:CVE-2026-49825· High 8.2

Not known to be exploited · CVSS 8.2 High : upgrade to 1.0.8_22 soon.

Data as of 4 Dec 2026, 20:03 UTC

CVSS 3.1 base score
8.2High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 1.0.8_22, 0.4.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 Aug 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 4 Dec 2026.

What to do

Upgrade gptline to 1.0.8_22; lxml-html-clean to 0.4.5.

Affected software

ProductAffectedFixed in
Homebrewgptlinepkg:brew/gptlineOther threatsAffected
  • >=1.0.8_4 <1.0.8_22
Fixed in
  • 1.0.8_22
PyPIlxml-html-cleanpkg:pypi/lxml-html-cleanOther threatsAffected
  • <0.4.5
Fixed in
  • 0.4.5

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

AI-suggested

A patch is available in version 1.0.8_22 that addresses this vulnerability by adding 'xlink:href' to the list of attributes checked for unsafe URL schemes. Users should upgrade to this fixed version to remediate the issue. No additional mitigation is required if the patched version is deployed. If upgrading is not immediately possible, avoid using Cleaner with safe_attrs_only=False or apply custom sanitization to handle namespaced URL attributes.

Description

The lxml_html_clean.Cleaner component in the lxml and lxml_html_clean Python packages does not sanitize javascript: URLs in namespaced URL attributes such as xlink:href. This allows malicious JavaScript payloads to survive sanitization when Cleaner is used with safe_attrs_only=False, potentially leading to stored cross-site scripting (XSS) vulnerabilities in applications that sanitize untrusted HTML using this configuration. The issue affects lxml versions up to 6.1.0 and lxml_html_clean up to 0.4.4. A fix is available in version 1.0.8_22 of the affected product.

References

Community reviews

Loading reviews…