<?xml version="1.0" encoding="UTF-8"?>
<cvrfdoc xmlns="http://www.icasi.org/CVRF/schema/cvrf/1.1" xmlns:cvrf="http://www.icasi.org/CVRF/schema/cvrf/1.1">
  <DocumentTitle xml:lang="en">Security update for python-lxml</DocumentTitle>
  <DocumentType>SUSE Patch</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>security@suse.de</ContactDetails>
    <IssuingAuthority>SUSE Security Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification>
      <ID>openSUSE-SU-2022:0803-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2022-03-10T16:36:12Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2022-03-10T16:36:12Z</InitialReleaseDate>
    <CurrentReleaseDate>2022-03-10T16:36:12Z</CurrentReleaseDate>
    <Generator>
      <Engine>cve-database/bin/generate-cvrf.pl</Engine>
      <Date>2017-02-24T01:00:00Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="Topic" Type="Summary" Ordinal="1" xml:lang="en">Security update for python-lxml</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">This update for python-lxml fixes the following issues:

- CVE-2018-19787: Fixed XSS vulnerability via unescaped URL (bsc#1118088).
- CVE-2021-28957: Fixed XSS vulnerability ia HTML5 attributes unescaped (bsc#1184177).
- CVE-2021-43818: Fixed XSS vulnerability via script content in SVG images using data URIs (bnc#1193752).
- CVE-2020-27783: Fixed mutation XSS with improper parser use (bnc#1179534).
</Note>
    <Note Title="Terms of Use" Type="Legal Disclaimer" Ordinal="3" xml:lang="en">The CVRF data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).</Note>
    <Note Title="Patchnames" Type="Details" Ordinal="4" xml:lang="en">openSUSE-SLE-15.3-2022-803,openSUSE-SLE-15.4-2022-803</Note>
  </DocumentNotes>
  <DocumentDistribution xml:lang="en">Copyright SUSE LLC under the Creative Commons License 4.0 with Attribution (CC-BY-4.0)</DocumentDistribution>
  <DocumentReferences>
    <Reference Type="Self">
      <URL>https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/CXPBEANDVGCE6ASRYRQYWM4CLYAJ6TAE/</URL>
      <Description>E-Mail link for openSUSE-SU-2022:0803-1</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/support/security/rating/</URL>
      <Description>SUSE Security Ratings</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1118088</URL>
      <Description>SUSE Bug 1118088</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1179534</URL>
      <Description>SUSE Bug 1179534</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1184177</URL>
      <Description>SUSE Bug 1184177</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1193752</URL>
      <Description>SUSE Bug 1193752</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2018-19787/</URL>
      <Description>SUSE CVE CVE-2018-19787 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2020-27783/</URL>
      <Description>SUSE CVE CVE-2020-27783 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2021-28957/</URL>
      <Description>SUSE CVE CVE-2021-28957 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2021-43818/</URL>
      <Description>SUSE CVE CVE-2021-43818 page</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="openSUSE Leap 15.3">
      <Branch Type="Product Name" Name="openSUSE Leap 15.3">
        <FullProductName ProductID="openSUSE Leap 15.3" CPE="cpe:/o:opensuse:leap:15.3">openSUSE Leap 15.3</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="python2-lxml-4.7.1-3.7.1">
      <FullProductName ProductID="python2-lxml-4.7.1-3.7.1">python2-lxml-4.7.1-3.7.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="python2-lxml-devel-4.7.1-3.7.1">
      <FullProductName ProductID="python2-lxml-devel-4.7.1-3.7.1">python2-lxml-devel-4.7.1-3.7.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="python3-lxml-4.7.1-3.7.1">
      <FullProductName ProductID="python3-lxml-4.7.1-3.7.1">python3-lxml-4.7.1-3.7.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="python3-lxml-devel-4.7.1-3.7.1">
      <FullProductName ProductID="python3-lxml-devel-4.7.1-3.7.1">python3-lxml-devel-4.7.1-3.7.1</FullProductName>
    </Branch>
    <Relationship ProductReference="python2-lxml-4.7.1-3.7.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.3">
      <FullProductName ProductID="openSUSE Leap 15.3:python2-lxml-4.7.1-3.7.1">python2-lxml-4.7.1-3.7.1 as a component of openSUSE Leap 15.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="python2-lxml-devel-4.7.1-3.7.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.3">
      <FullProductName ProductID="openSUSE Leap 15.3:python2-lxml-devel-4.7.1-3.7.1">python2-lxml-devel-4.7.1-3.7.1 as a component of openSUSE Leap 15.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="python3-lxml-4.7.1-3.7.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.3">
      <FullProductName ProductID="openSUSE Leap 15.3:python3-lxml-4.7.1-3.7.1">python3-lxml-4.7.1-3.7.1 as a component of openSUSE Leap 15.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="python3-lxml-devel-4.7.1-3.7.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.3">
      <FullProductName ProductID="openSUSE Leap 15.3:python3-lxml-devel-4.7.1-3.7.1">python3-lxml-devel-4.7.1-3.7.1 as a component of openSUSE Leap 15.3</FullProductName>
    </Relationship>
  </ProductTree>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="1">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">An issue was discovered in lxml before 4.2.5. lxml/html/clean.py in the lxml.html.clean module does not remove javascript: URLs that use escaping, allowing a remote attacker to conduct XSS attacks, as demonstrated by "j a v a s c r i p t:" in Internet Explorer. This is a similar issue to CVE-2014-3146.</Note>
    </Notes>
    <CVE>CVE-2018-19787</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 15.3:python2-lxml-4.7.1-3.7.1</ProductID>
        <ProductID>openSUSE Leap 15.3:python2-lxml-devel-4.7.1-3.7.1</ProductID>
        <ProductID>openSUSE Leap 15.3:python3-lxml-4.7.1-3.7.1</ProductID>
        <ProductID>openSUSE Leap 15.3:python3-lxml-devel-4.7.1-3.7.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSet>
        <BaseScore>4.3</BaseScore>
        <Vector>AV:N/AC:M/Au:N/C:N/I:P/A:N</Vector>
      </ScoreSet>
    </CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/CXPBEANDVGCE6ASRYRQYWM4CLYAJ6TAE/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2018-19787.html</URL>
        <Description>CVE-2018-19787</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1118088</URL>
        <Description>SUSE Bug 1118088</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="2">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">A XSS vulnerability was discovered in python-lxml's clean module. The module's parser didn't properly imitate browsers, which caused different behaviors between the sanitizer and the user's page. A remote attacker could exploit this flaw to run arbitrary HTML/JS code.</Note>
    </Notes>
    <CVE>CVE-2020-27783</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 15.3:python2-lxml-4.7.1-3.7.1</ProductID>
        <ProductID>openSUSE Leap 15.3:python2-lxml-devel-4.7.1-3.7.1</ProductID>
        <ProductID>openSUSE Leap 15.3:python3-lxml-4.7.1-3.7.1</ProductID>
        <ProductID>openSUSE Leap 15.3:python3-lxml-devel-4.7.1-3.7.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSet>
        <BaseScore>4.3</BaseScore>
        <Vector>AV:N/AC:M/Au:N/C:N/I:P/A:N</Vector>
      </ScoreSet>
    </CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/CXPBEANDVGCE6ASRYRQYWM4CLYAJ6TAE/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2020-27783.html</URL>
        <Description>CVE-2020-27783</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1179534</URL>
        <Description>SUSE Bug 1179534</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="3">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">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.</Note>
    </Notes>
    <CVE>CVE-2021-28957</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 15.3:python2-lxml-4.7.1-3.7.1</ProductID>
        <ProductID>openSUSE Leap 15.3:python2-lxml-devel-4.7.1-3.7.1</ProductID>
        <ProductID>openSUSE Leap 15.3:python3-lxml-4.7.1-3.7.1</ProductID>
        <ProductID>openSUSE Leap 15.3:python3-lxml-devel-4.7.1-3.7.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSet>
        <BaseScore>4.3</BaseScore>
        <Vector>AV:N/AC:M/Au:N/C:N/I:P/A:N</Vector>
      </ScoreSet>
    </CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/CXPBEANDVGCE6ASRYRQYWM4CLYAJ6TAE/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2021-28957.html</URL>
        <Description>CVE-2021-28957</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1184177</URL>
        <Description>SUSE Bug 1184177</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="4">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">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.</Note>
    </Notes>
    <CVE>CVE-2021-43818</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 15.3:python2-lxml-4.7.1-3.7.1</ProductID>
        <ProductID>openSUSE Leap 15.3:python2-lxml-devel-4.7.1-3.7.1</ProductID>
        <ProductID>openSUSE Leap 15.3:python3-lxml-4.7.1-3.7.1</ProductID>
        <ProductID>openSUSE Leap 15.3:python3-lxml-devel-4.7.1-3.7.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSet>
        <BaseScore>6.8</BaseScore>
        <Vector>AV:N/AC:M/Au:N/C:P/I:P/A:P</Vector>
      </ScoreSet>
    </CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/CXPBEANDVGCE6ASRYRQYWM4CLYAJ6TAE/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2021-43818.html</URL>
        <Description>CVE-2021-43818</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1193752</URL>
        <Description>SUSE Bug 1193752</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
