Skip to content
Heist/ feed
Back to feed
HighFix available

py3-lxml — security advisory

Type: advisorySources: OSVAdvisory ID: ALPINE-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.

Products
py3-lxml
Affected versions
Not specified
Fixed versions
4.6.5-r0
CVEs
CVE-2021-43818
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 22:07 UTC · Revision 1

Source evidence

ALPINE-CVE-2021-43818

core-osv · Original source

Published 13 Dec 2021, 18:15 UTC

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.

osv:ALPINE-CVE-2021-43818

py3-lxml

Fixed versions: 4.6.5-r0

py3-lxml

Fixed versions: 4.6.5-r0

py3-lxml

Fixed versions: 4.6.5-r0

py3-lxml

Fixed versions: 4.6.5-r0

py3-lxml

Fixed versions: 4.6.5-r0

py3-lxml

Fixed versions: 4.6.5-r0

py3-lxml

Fixed versions: 4.6.5-r0

py3-lxml

Fixed versions: 4.6.5-r0

py3-lxml

Fixed versions: 4.6.5-r0

Complete source record
{
  "id": "600e29801401fbbd718861a61cde403c0cf458d926b3e52eb0a938d82d72bd8f",
  "url": "https://osv.dev/vulnerability/ALPINE-CVE-2021-43818",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ALPINE-CVE-2021-43818",
    "summary": "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.",
    "evidence": "osv:ALPINE-CVE-2021-43818",
    "products": [
      {
        "name": {
          "value": "py3-lxml",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.6.5-r0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "py3-lxml",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.6.5-r0",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "py3-lxml",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.6.5-r0",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "py3-lxml",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.6.5-r0",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "py3-lxml",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.6.5-r0",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "py3-lxml",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.6.5-r0",
            "evidence": "/affected/5/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "py3-lxml",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.6.5-r0",
            "evidence": "/affected/6/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "py3-lxml",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.6.5-r0",
            "evidence": "/affected/7/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "py3-lxml",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.6.5-r0",
            "evidence": "/affected/8/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "ALPINE-CVE-2021-43818",
      "aliases": [
        "ALPINE-CVE-2021-43818"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4.6.5-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "py3-lxml",
            "purl": "pkg:apk/alpine/py3-lxml?arch=source",
            "ecosystem": "Alpine:v3.16"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-43818.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4.6.5-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "py3-lxml",
            "purl": "pkg:apk/alpine/py3-lxml?arch=source",
            "ecosystem": "Alpine:v3.17"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-43818.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4.6.5-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "py3-lxml",
            "purl": "pkg:apk/alpine/py3-lxml?arch=source",
            "ecosystem": "Alpine:v3.18"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-43818.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4.6.5-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "py3-lxml",
            "purl": "pkg:apk/alpine/py3-lxml?arch=source",
            "ecosystem": "Alpine:v3.19"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-43818.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4.6.5-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "py3-lxml",
            "purl": "pkg:apk/alpine/py3-lxml?arch=source",
            "ecosystem": "Alpine:v3.20"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-43818.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4.6.5-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "py3-lxml",
            "purl": "pkg:apk/alpine/py3-lxml?arch=source",
            "ecosystem": "Alpine:v3.21"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-43818.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4.6.5-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "py3-lxml",
            "purl": "pkg:apk/alpine/py3-lxml?arch=source",
            "ecosystem": "Alpine:v3.22"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-43818.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4.6.5-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "py3-lxml",
            "purl": "pkg:apk/alpine/py3-lxml?arch=source",
            "ecosystem": "Alpine:v3.23"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-43818.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4.6.5-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "py3-lxml",
            "purl": "pkg:apk/alpine/py3-lxml?arch=source",
            "ecosystem": "Alpine:v3.24"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-43818.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-23T17:17:56.224161023Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-43818"
      ],
      "references": [
        "https://security.alpinelinux.org/vuln/CVE-2021-43818"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-43818",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 415598,
  "published_at": "2021-12-13T18:15:08.387+00:00"
}