{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-141556",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2026-12-01T21:46:37.103Z",
        "datePublished": "2026-12-02T20:15:03.484Z",
        "dateUpdated": "2026-12-02T20:15:03.484Z"
    },
    "containers": {
        "cna": {
            "title": "lxml-html-clean: Cleaner(safe_attrs_only=False) keeps javascript: in iframe srcdoc and SVG animation values",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-79",
                            "lang": "en",
                            "description": "CWE-79: Improper Neutralization of Input During Web Page Generation",
                            "type": "CWE"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-184",
                            "lang": "en",
                            "description": "CWE-184: Incomplete List of Disallowed Inputs",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "HIGH",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "NONE",
                        "baseScore": 4.7,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "LOW",
                        "integrityImpact": "LOW",
                        "privilegesRequired": "NONE",
                        "scope": "CHANGED",
                        "userInteraction": "REQUIRED",
                        "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-5gvf-7wqf-r4cv",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-5gvf-7wqf-r4cv"
                },
                {
                    "name": "https://github.com/fedora-python/lxml_html_clean/commit/883db209e04222a1959f7773f5bde1da0224fbe1",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/fedora-python/lxml_html_clean/commit/883db209e04222a1959f7773f5bde1da0224fbe1"
                },
                {
                    "name": "https://github.com/fedora-python/lxml_html_clean/releases/tag/0.4.7",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/fedora-python/lxml_html_clean/releases/tag/0.4.7"
                }
            ],
            "affected": [
                {
                    "vendor": "fedora-python",
                    "product": "lxml_html_clean",
                    "versions": [
                        {
                            "version": "< 0.4.7",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2026-12-02T20:15:03.484Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "lxml-html-clean is an HTML cleaning library for Python. In versions through 0.4.6, Cleaner in lxml_html_clean/clean.py configured with safe_attrs_only=False removes JavaScript links using rewrite_links, which visits only attributes in lxml.html.defs.link_attrs and misses iframe srcdoc and SVG animation attributes. When an iframe is retained through host_whitelist, srcdoc takes priority over its source and can cause attacker-controlled HTML to run without a click. With remove_unknown_tags=False, SVG set or animate elements can use attributeName and attributes such as to, from, by, or values to change a link destination to a JavaScript URL that runs when clicked. This vulnerability is fixed in 0.4.7."
                }
            ],
            "source": {
                "advisory": "GHSA-5gvf-7wqf-r4cv",
                "discovery": "UNKNOWN"
            }
        }
    }
}