GHSA-jq4v-f5q6-mjqq

    Dashboard / Vulnerabilities / GHSA-jq4v-f5q6-mjqq

    GHSA-jq4v-f5q6-mjqq

    Published: 22 Mar 2021Last Modified: 30 Sept 2024

    Summary: lxml vulnerable to Cross-Site Scripting

    Details: An XSS vulnerability was discovered in the python `lxml` 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.

    Affected packages

    Package

    Name: lxml

    Purl: pkg:pypi/lxml

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -4.6.3

    Affected versions

    1.3.2
    1.3.3
    1.3.4
    1.3.5
    1.3.6

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-jq4v-f5q6-mjqq | CVE-DB