{"api_version":"1","generated_at":"2026-04-22T21:02:42+00:00","cve":"CVE-2021-28957","urls":{"html":"https://cve.report/CVE-2021-28957","api":"https://cve.report/api/cve/CVE-2021-28957.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-28957","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-28957"},"summary":{"title":"CVE-2021-28957","description":"An XSS vulnerability was discovered in python-lxml's clean module versions before 4.6.3. When disabling the safe_attrs_only and forms arguments, the Cleaner class does not remove the formaction attribute allowing for JS to bypass the sanitizer. A remote attacker could exploit this flaw to run arbitrary JS code on users who interact with incorrectly sanitized HTML. This issue is patched in lxml 4.6.3.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2021-03-21 05:15:00","updated_at":"2023-11-07 03:32:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XXN3QPWCTQVOGW4BMWV3AUUZZ4NRZNSQ/","name":"FEDORA-2021-4cdb0f68c7","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 33 Update: python-lxml-4.5.1-4.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://bugs.launchpad.net/lxml/+bug/1888153","name":"https://bugs.launchpad.net/lxml/+bug/1888153","refsource":"MISC","tags":[],"title":"Bug #1888153 “formaction attr allowing javascript in Cleaner() i...” : Bugs : lxml","mime":"text/x-python","httpstatus":"200","archivestatus":"0"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XXN3QPWCTQVOGW4BMWV3AUUZZ4NRZNSQ/","name":"FEDORA-2021-4cdb0f68c7","refsource":"","tags":[],"title":"[SECURITY] Fedora 33 Update: python-lxml-4.5.1-4.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.gentoo.org/glsa/202208-06","name":"GLSA-202208-06","refsource":"GENTOO","tags":[],"title":"lxml: Multiple Vulnerabilities (GLSA 202208-06) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3C2R44VDUY7FJVMAVRZ2WY7XYL4SVN45/","name":"FEDORA-2021-28723f9670","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 34 Update: python-lxml-4.6.3-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","name":"https://www.oracle.com/security-alerts/cpuoct2021.html","refsource":"MISC","tags":[],"title":"Oracle Critical Patch Update Advisory - October 2021","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2021/03/msg00031.html","name":"[debian-lts-announce] 20210324 [SECURITY] [DLA 2606-1] lxml security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2606-1] lxml security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.netapp.com/advisory/ntap-20210521-0004/","name":"https://security.netapp.com/advisory/ntap-20210521-0004/","refsource":"CONFIRM","tags":[],"title":"CVE-2021-28957 lxml Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.debian.org/security/2021/dsa-4880","name":"DSA-4880","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-4880-1 lxml","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3C2R44VDUY7FJVMAVRZ2WY7XYL4SVN45/","name":"FEDORA-2021-28723f9670","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: python-lxml-4.6.3-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/lxml/lxml/commit/a5f9cb52079dc57477c460dbe6ba0f775e14a999","name":"https://github.com/lxml/lxml/commit/a5f9cb52079dc57477c460dbe6ba0f775e14a999","refsource":"MISC","tags":[],"title":"Prepare release of lxml 4.6.3. · lxml/lxml@a5f9cb5 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/lxml/lxml/pull/316/commits/10ec1b4e9f93713513a3264ed6158af22492f270","name":"https://github.com/lxml/lxml/pull/316/commits/10ec1b4e9f93713513a3264ed6158af22492f270","refsource":"MISC","tags":[],"title":"Add formaction attribute to defs.link_attrs by ColdHeat · Pull Request #316 · lxml/lxml · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-28957","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28957","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"28957","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"28957","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"28957","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"33","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"28957","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"28957","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"lxml","cpe5":"lxml","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"28957","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"lxml","cpe5":"lxml","cpe6":"4.6.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"28957","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"netapp","cpe5":"snapcenter","cpe6":"-","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"28957","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"oracle","cpe5":"zfs_storage_appliance_kit","cpe6":"8.8","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-28957","qid":"159463","title":"Oracle Enterprise Linux Security Update for python27:2.7 (ELSA-2021-4151)"},{"cve":"CVE-2021-28957","qid":"159466","title":"Oracle Enterprise Linux Security Update for python39:3.9 and python39-devel:3.9 (ELSA-2021-4160)"},{"cve":"CVE-2021-28957","qid":"159467","title":"Oracle Enterprise Linux Security Update for python38:3.8 and python38-devel:3.8 (ELSA-2021-4162)"},{"cve":"CVE-2021-28957","qid":"159768","title":"Oracle Enterprise Linux Security Update for ol-automation-manager (ELSA-2022-9341)"},{"cve":"CVE-2021-28957","qid":"178503","title":"Debian Security Update for lxml (DLA 2606-1)"},{"cve":"CVE-2021-28957","qid":"178517","title":"Debian Security Update for lxml (DSA 4880-1)"},{"cve":"CVE-2021-28957","qid":"179793","title":"Debian Security Update for lxml (CVE-2021-28957)"},{"cve":"CVE-2021-28957","qid":"198314","title":"Ubuntu Security Notification for Lxml Vulnerability (USN-4896-1)"},{"cve":"CVE-2021-28957","qid":"239580","title":"Red Hat Update for rh-python38 (RHSA-2021:3254)"},{"cve":"CVE-2021-28957","qid":"239826","title":"Red Hat Update for python27:2.7 (RHSA-2021:4151)"},{"cve":"CVE-2021-28957","qid":"239836","title":"Red Hat Update for python-lxml (RHSA-2021:4158)"},{"cve":"CVE-2021-28957","qid":"239841","title":"Red Hat Update for python39:3.9 and python39-devel:3.9 (RHSA-2021:4160)"},{"cve":"CVE-2021-28957","qid":"239845","title":"Red Hat Update for python38:3.8 and python38-devel:3.8 (RHSA-2021:4162)"},{"cve":"CVE-2021-28957","qid":"281102","title":"Fedora Security Update for python (FEDORA-2021-28723f9670)"},{"cve":"CVE-2021-28957","qid":"281501","title":"Fedora Security Update for python (FEDORA-2021-4cdb0f68c7)"},{"cve":"CVE-2021-28957","qid":"296059","title":"Oracle Solaris 11.4 Support Repository Update (SRU) 36.0.1.101.2 Missing (CPUJUL2021)"},{"cve":"CVE-2021-28957","qid":"378004","title":"Splunk Enterprise Multiple Vulnerabilities (SVD-2023-0215,SVD-2023-0211,SVD-2023-0208)"},{"cve":"CVE-2021-28957","qid":"501680","title":"Alpine Linux Security Update for py3-lxml"},{"cve":"CVE-2021-28957","qid":"504330","title":"Alpine Linux Security Update for py3-lxml"},{"cve":"CVE-2021-28957","qid":"670725","title":"EulerOS Security Update for python-lxml (EulerOS-SA-2021-2483)"},{"cve":"CVE-2021-28957","qid":"670759","title":"EulerOS Security Update for python-lxml (EulerOS-SA-2021-2517)"},{"cve":"CVE-2021-28957","qid":"670781","title":"EulerOS Security Update for python-lxml (EulerOS-SA-2021-2539)"},{"cve":"CVE-2021-28957","qid":"670805","title":"EulerOS Security Update for python-lxml (EulerOS-SA-2021-2563)"},{"cve":"CVE-2021-28957","qid":"671141","title":"EulerOS Security Update for python-lxml (EulerOS-SA-2021-2610)"},{"cve":"CVE-2021-28957","qid":"710581","title":"Gentoo Linux lxml Multiple Vulnerabilities (GLSA 202208-06)"},{"cve":"CVE-2021-28957","qid":"751854","title":"SUSE Enterprise Linux Security Update for python-lxml (SUSE-SU-2022:0803-1)"},{"cve":"CVE-2021-28957","qid":"751858","title":"OpenSUSE Security Update for python-lxml (openSUSE-SU-2022:0803-1)"},{"cve":"CVE-2021-28957","qid":"751901","title":"SUSE Enterprise Linux Security Update for python-lxml (SUSE-SU-2022:0895-1)"},{"cve":"CVE-2021-28957","qid":"752787","title":"SUSE Enterprise Linux Security Update for python3-lxml (SUSE-SU-2022:3937-1)"},{"cve":"CVE-2021-28957","qid":"900214","title":"CBL-Mariner Linux Security Update for python-lxml 4.2.4"},{"cve":"CVE-2021-28957","qid":"901258","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for python-lxml (6808-1)"},{"cve":"CVE-2021-28957","qid":"903571","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for python-lxml (4682)"},{"cve":"CVE-2021-28957","qid":"940292","title":"AlmaLinux Security Update for python-lxml (ALSA-2021:4158)"},{"cve":"CVE-2021-28957","qid":"940522","title":"AlmaLinux Security Update for python27:2.7 (ALSA-2021:4151)"},{"cve":"CVE-2021-28957","qid":"940526","title":"AlmaLinux Security Update for python38:3.8 and python38-devel:3.8 (ALSA-2021:4162)"},{"cve":"CVE-2021-28957","qid":"940559","title":"AlmaLinux Security Update for python39:3.9 and python39-devel:3.9 (ALSA-2021:4160)"},{"cve":"CVE-2021-28957","qid":"960239","title":"Rocky Linux Security Update for python39:3.9 and python39-devel:3.9 (RLSA-2021:4160)"},{"cve":"CVE-2021-28957","qid":"960320","title":"Rocky Linux Security Update for python27:2.7 (RLSA-2021:4151)"},{"cve":"CVE-2021-28957","qid":"960342","title":"Rocky Linux Security Update for python38:3.8 and python38-devel:3.8 (RLSA-2021:4162)"},{"cve":"CVE-2021-28957","qid":"960712","title":"Rocky Linux Security Update for python-lxml (RLSA-2021:4158)"},{"cve":"CVE-2021-28957","qid":"980346","title":"Python (pip) Security Update for lxml (GHSA-jq4v-f5q6-mjqq)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-28957","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"An XSS vulnerability was discovered in python-lxml's clean module versions before 4.6.3. When disabling the safe_attrs_only and forms arguments, the Cleaner class does not remove the formaction attribute allowing for JS to bypass the sanitizer. A remote attacker could exploit this flaw to run arbitrary JS code on users who interact with incorrectly sanitized HTML. This issue is patched in lxml 4.6.3."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://bugs.launchpad.net/lxml/+bug/1888153","refsource":"MISC","name":"https://bugs.launchpad.net/lxml/+bug/1888153"},{"url":"https://github.com/lxml/lxml/pull/316/commits/10ec1b4e9f93713513a3264ed6158af22492f270","refsource":"MISC","name":"https://github.com/lxml/lxml/pull/316/commits/10ec1b4e9f93713513a3264ed6158af22492f270"},{"refsource":"MLIST","name":"[debian-lts-announce] 20210324 [SECURITY] [DLA 2606-1] lxml security update","url":"https://lists.debian.org/debian-lts-announce/2021/03/msg00031.html"},{"refsource":"DEBIAN","name":"DSA-4880","url":"https://www.debian.org/security/2021/dsa-4880"},{"refsource":"FEDORA","name":"FEDORA-2021-28723f9670","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3C2R44VDUY7FJVMAVRZ2WY7XYL4SVN45/"},{"refsource":"FEDORA","name":"FEDORA-2021-4cdb0f68c7","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XXN3QPWCTQVOGW4BMWV3AUUZZ4NRZNSQ/"},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","refsource":"MISC","name":"https://www.oracle.com/security-alerts/cpuoct2021.html"},{"refsource":"MISC","name":"https://github.com/lxml/lxml/commit/a5f9cb52079dc57477c460dbe6ba0f775e14a999","url":"https://github.com/lxml/lxml/commit/a5f9cb52079dc57477c460dbe6ba0f775e14a999"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20210521-0004/","url":"https://security.netapp.com/advisory/ntap-20210521-0004/"},{"refsource":"GENTOO","name":"GLSA-202208-06","url":"https://security.gentoo.org/glsa/202208-06"}]}},"nvd":{"publishedDate":"2021-03-21 05:15:00","lastModifiedDate":"2023-11-07 03:32:00","problem_types":["CWE-79"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":2.7},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:lxml:lxml:*:*:*:*:*:*:*:*","versionEndExcluding":"4.6.3","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:netapp:snapcenter:-:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:oracle:zfs_storage_appliance_kit:8.8:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"28957","Ordinal":"204139","Title":"CVE-2021-28957","CVE":"CVE-2021-28957","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"28957","Ordinal":"1","NoteData":"An XSS vulnerability was discovered in python-lxml's clean module versions before 4.6.3. When disabling the safe_attrs_only and forms arguments, the Cleaner class does not remove the formaction attribute allowing for JS to bypass the sanitizer. A remote attacker could exploit this flaw to run arbitrary JS code on users who interact with incorrectly sanitized HTML. This issue is patched in lxml 4.6.3.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"28957","Ordinal":"2","NoteData":"2021-03-21","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"28957","Ordinal":"3","NoteData":"2021-10-20","Type":"Other","Title":"Modified"}]}}}