<?xml version="1.0" encoding="utf-8"?>
  <?xml-stylesheet type="text/xsl" href="sa-render.xsl"?>
  <update from="huaweicloud.com" type="security" status="stable" version="1">
    <id>HCE1-SA-2023-0066</id>
    <title>An update for python-lxml is now available for HCE 1.1</title>
    <severity>Moderate</severity>
    <release>HCE 1.1</release>
    <issued date="2023-01-05 02:56:01"/>
    <updated date="2023-01-05 02:56:01"/>
    <references>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2018-19787" id="CVE-2018-19787" title="CVE-2018-19787 Base Score: 6.1 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2021-28957" id="CVE-2021-28957" title="CVE-2021-28957 Base Score: 6.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N" type="cve"/>
    </references>
    <description>Security Fix(es):

An issue was discovered in lxml before 4.2.5. lxml/html/clean.py in the lxml.html.clean module does not remove _ URLs that use escaping, allowing a remote attacker to conduct XSS attacks, as demonstrated by &quot;j a v a s c r i p t:&quot; in Internet Explorer. This is a similar issue to CVE-2014-3146. (CVE-2018-19787)

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. (CVE-2021-28957)
</description>
    <pkglist>
      <collection short="HCE 1.1" package="python-lxml">
        <name>HCE 1.1</name>
        <package arch="x86_64" name="python-lxml" version="3.2.1" release="5.hce1c">
          <filename>python-lxml-3.2.1-5.hce1c.x86_64.rpm</filename>
        </package>
      </collection>
    </pkglist>
  </update>
