{"answers":{"affected":"3 open source packages ship an affected version, including lxml-html-clean and lxml_html_clean.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49825 exists.","fix":"Upgrade lxml-html-clean to 0.4.5 or later.","what":"CVE-2026-49825 is a high-severity cross-site scripting vulnerability in fedora-python lxml, published on 20 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-49825 and fix it if it is affected.\n\nWhat it is: CVE-2026-49825 is a high-severity cross-site scripting vulnerability in fedora-python lxml, published on 20 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49825 exists.\n\nAffected packages and fixed versions:\n- lxml-html-clean (PyPI): affected all versions; fixed in 0.4.5\n- lxml-html-clean (PyPI): affected all versions; fixed in 0.4.5\n- lxml_html_clean (PyPI): affected all versions; fixed in 0.4.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-49825/ (Markdown: https://insights.sbomify.com/CVE-2026-49825/index.md)","id":"CVE-2026-49825","markdown":"https://insights.sbomify.com/CVE-2026-49825/index.md","name":"CVE-2026-49825","record":{"aliases":["ALSA-2026:66203","ALSA-2026:66204","ALSA-2026:67943","AZL-96857","BELL-CVE-2026-49825","CLSA-2026-1792809744","CLSA-2026-1792809858","DEBIAN-CVE-2026-49825","ECHO-929c-25c5-f964","GHSA-4jhm-jv67-739f","MINI-c87q-4j47-9x44","MINI-rc8x-r885-2cxw","OESA-2026-3217","PYSEC-2026-2614","RHSA-2026:66203","RHSA-2026:66204","RHSA-2026:67324","RHSA-2026:67325","RHSA-2026:67326","RHSA-2026:67943","RHSA-2026:74081","RHSA-2026:74082","RHSA-2026:84592","RHSA-2026:84593","RLSA-2026:66203","RLSA-2026:66204","RLSA-2026:67943","UBUNTU-CVE-2026-49825","openSUSE-SU-2026:11191-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python XML library","requires_auth":"none","summary":"Attackers can bypass HTML cleaner protections using xlink:href attributes in SVG content to inject malicious JavaScript, leading to XSS.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"}],"description":"lxml is a library for processing XML and HTML in the Python language. Prior to 6.1.1, link attributes in ``lxml.html.defs.link_attrs`` were missing ``xlink:href``, which can be used for URL bypass attacks in embedded SVG/MathML/etc. content. This vulnerability was fixed in lxml 6.1.1 and lxml_html_clean 0.4.5.","ecosystems":["AlmaLinux:8","AlmaLinux:9","PyPI","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_e4s:8.8::appstream","Red Hat:rhel_e4s:9.2::appstream","Red Hat:rhel_e4s:9.4::appstream","Red Hat:rhel_eus:9.6::appstream","Red Hat:rhel_eus_long_life:8.6::appstream","Red Hat:rhel_tus:8.8::appstream","Rocky Linux:8","Rocky Linux:9","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"lxml: javascript: URL bypass in Cleaner via xlink:href","id":"CVE-2026-49825","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":55,"n_references":5,"next":{"headline":"Concourse login flow has an open redirect issue","id":"CVE-2026-49826"},"packages":[{"ecosystem":"PyPI","fixed":["0.4.5"],"introduced":["0"],"last_affected":[],"package":"lxml-html-clean","purl":"pkg:pypi/lxml-html-clean","source":"GHSA-4jhm-jv67-739f"},{"ecosystem":"PyPI","fixed":["0.4.5"],"introduced":["0"],"last_affected":[],"package":"lxml-html-clean","purl":"pkg:pypi/lxml-html-clean","source":"PYSEC-2026-2614"},{"ecosystem":"PyPI","fixed":["0.4.5"],"introduced":["0"],"last_affected":[],"package":"lxml_html_clean","purl":null,"source":"GHSA-4jhm-jv67-739f"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.3-5.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-lxml","purl":"pkg:rpm/almalinux/python3-lxml","source":"ALSA-2026:67943"},{"ecosystem":"AlmaLinux:9","fixed":["4.6.5-3.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"python3-lxml","purl":"pkg:rpm/almalinux/python3-lxml","source":"ALSA-2026:66204"},{"ecosystem":"AlmaLinux:9","fixed":["4.9.3-2.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"python3.12-lxml","purl":"pkg:rpm/almalinux/python3.12-lxml","source":"ALSA-2026:66203"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.2.3-5.el8_10"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/redhat/python-lxml","source":"RHSA-2026:67943"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.2.3-5.el8_10"],"introduced":["0"],"last_affected":[],"package":"python-lxml-debugsource","purl":"pkg:rpm/redhat/python-lxml-debugsource","source":"RHSA-2026:67943"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.2.3-5.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-lxml","purl":"pkg:rpm/redhat/python3-lxml","source":"RHSA-2026:67943"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.2.3-5.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-lxml-debuginfo","purl":"pkg:rpm/redhat/python3-lxml-debuginfo","source":"RHSA-2026:67943"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:4.6.5-3.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/redhat/python-lxml","source":"RHSA-2026:66204"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:4.6.5-3.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml-debugsource","purl":"pkg:rpm/redhat/python-lxml-debugsource","source":"RHSA-2026:66204"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:4.6.5-3.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"python3-lxml","purl":"pkg:rpm/redhat/python3-lxml","source":"RHSA-2026:66204"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:4.6.5-3.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"python3-lxml-debuginfo","purl":"pkg:rpm/redhat/python3-lxml-debuginfo","source":"RHSA-2026:66204"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:4.9.3-2.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"python3.12-lxml","purl":"pkg:rpm/redhat/python3.12-lxml","source":"RHSA-2026:66203"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:4.9.3-2.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"python3.12-lxml-debuginfo","purl":"pkg:rpm/redhat/python3.12-lxml-debuginfo","source":"RHSA-2026:66203"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:4.9.3-2.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"python3.12-lxml-debugsource","purl":"pkg:rpm/redhat/python3.12-lxml-debugsource","source":"RHSA-2026:66203"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:4.2.3-4.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/redhat/python-lxml","source":"RHSA-2026:84592"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:4.2.3-4.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml-debugsource","purl":"pkg:rpm/redhat/python-lxml-debugsource","source":"RHSA-2026:84592"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:4.2.3-4.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"python3-lxml","purl":"pkg:rpm/redhat/python3-lxml","source":"RHSA-2026:84592"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:4.2.3-4.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"python3-lxml-debuginfo","purl":"pkg:rpm/redhat/python3-lxml-debuginfo","source":"RHSA-2026:84592"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["0:4.2.3-4.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/redhat/python-lxml","source":"RHSA-2026:84593"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["0:4.2.3-4.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml-debugsource","purl":"pkg:rpm/redhat/python-lxml-debugsource","source":"RHSA-2026:84593"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["0:4.2.3-4.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"python3-lxml","purl":"pkg:rpm/redhat/python3-lxml","source":"RHSA-2026:84593"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["0:4.2.3-4.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"python3-lxml-debuginfo","purl":"pkg:rpm/redhat/python3-lxml-debuginfo","source":"RHSA-2026:84593"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:4.6.5-3.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/redhat/python-lxml","source":"RHSA-2026:67326"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:4.6.5-3.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml-debugsource","purl":"pkg:rpm/redhat/python-lxml-debugsource","source":"RHSA-2026:67326"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:4.6.5-3.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"python3-lxml","purl":"pkg:rpm/redhat/python3-lxml","source":"RHSA-2026:67326"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:4.6.5-3.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"python3-lxml-debuginfo","purl":"pkg:rpm/redhat/python3-lxml-debuginfo","source":"RHSA-2026:67326"},{"ecosystem":"Red Hat:rhel_e4s:9.4::appstream","fixed":["0:4.6.5-3.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/redhat/python-lxml","source":"RHSA-2026:67325"},{"ecosystem":"Red Hat:rhel_e4s:9.4::appstream","fixed":["0:4.6.5-3.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml-debugsource","purl":"pkg:rpm/redhat/python-lxml-debugsource","source":"RHSA-2026:67325"},{"ecosystem":"Red Hat:rhel_e4s:9.4::appstream","fixed":["0:4.6.5-3.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"python3-lxml","purl":"pkg:rpm/redhat/python3-lxml","source":"RHSA-2026:67325"},{"ecosystem":"Red Hat:rhel_e4s:9.4::appstream","fixed":["0:4.6.5-3.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"python3-lxml-debuginfo","purl":"pkg:rpm/redhat/python3-lxml-debuginfo","source":"RHSA-2026:67325"},{"ecosystem":"Red Hat:rhel_e4s:9.4::appstream","fixed":["0:4.9.3-2.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"python3.12-lxml","purl":"pkg:rpm/redhat/python3.12-lxml","source":"RHSA-2026:74082"},{"ecosystem":"Red Hat:rhel_e4s:9.4::appstream","fixed":["0:4.9.3-2.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"python3.12-lxml-debuginfo","purl":"pkg:rpm/redhat/python3.12-lxml-debuginfo","source":"RHSA-2026:74082"},{"ecosystem":"Red Hat:rhel_e4s:9.4::appstream","fixed":["0:4.9.3-2.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"python3.12-lxml-debugsource","purl":"pkg:rpm/redhat/python3.12-lxml-debugsource","source":"RHSA-2026:74082"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:4.6.5-3.el9_6.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/redhat/python-lxml","source":"RHSA-2026:67324"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:4.6.5-3.el9_6.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml-debugsource","purl":"pkg:rpm/redhat/python-lxml-debugsource","source":"RHSA-2026:67324"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:4.6.5-3.el9_6.1"],"introduced":["0"],"last_affected":[],"package":"python3-lxml","purl":"pkg:rpm/redhat/python3-lxml","source":"RHSA-2026:67324"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:4.6.5-3.el9_6.1"],"introduced":["0"],"last_affected":[],"package":"python3-lxml-debuginfo","purl":"pkg:rpm/redhat/python3-lxml-debuginfo","source":"RHSA-2026:67324"}],"prev":{"headline":"Fission: Cross-namespace Environment reference via unvalidated EnvironmentRef in Function admission webhook","id":"CVE-2026-49824"},"products":["lxml","lxml_html_clean"],"published":"2026-08-20","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-21","vendors":["fedora-python","lxml"]},"summary":"Attackers can bypass HTML cleaner protections using xlink:href attributes in SVG content to inject malicious JavaScript, leading to XSS.","url":"https://insights.sbomify.com/CVE-2026-49825/"}