XSS in Lxml

CVE-2021-43818

lxml is a library for processing XML and HTML in the Python language. Prior to version 4.6.5, the HTML Cleaner in lxml.html lets certain crafted script content pass through, as well as script content in SVG files embedded using data URIs. Users that employ the HTML cleaner in a security relevant context should upgrade to lxml 4.6.5 to receive a patch. There are no known workarounds available.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 8.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N.

EPSS exploit prediction

EPSS: 0.027 (85.5th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 85th percentile — 85.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2021-43818: held from 0.025 to 0.027.

EPSS over last 30 days · oldest: 0.025 · newest: 0.027 · change: +0.002

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2021-43818?
CVE-2021-43818 is a high-severity vulnerability in Lxml, classified under Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection). CVSS score: 8.2/10. Published 2021-12-13.
How severe is CVE-2021-43818?
High severity. CVSS v3 base score is 8.2 out of 10.
Is CVE-2021-43818 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.