openSUSE Security Update : python-bleach (openSUSE-2021-552)

medium Nessus Plugin ID 148606

Language:

Synopsis

The remote openSUSE host is missing a security update.

Description

This update for python-bleach fixes the following issues :

- CVE-2021-23980: Fixed mutation XSS on bleach.clean with specific combinations of allowed tags (boo#1184547)

Update to 3.1.5 :

- replace missing ``setuptools`` dependency with ``packaging``. Thank you Benjamin Peterson.

Update to 3.1.4 (boo#1168280, CVE-2020-6817) :

- ``bleach.clean`` behavior parsing style attributes could result in a regular expression denial of service (ReDoS). Calls to ``bleach.clean`` with an allowed tag with an allowed ``style`` attribute were vulnerable to ReDoS. For example, ``bleach.clean(..., attributes=('a':
['style']))``.

- Style attributes with dashes, or single or double quoted values are cleaned instead of passed through.

update to 3.1.3 (boo#1167379, CVE-2020-6816) :

- Add relative link to code of conduct. (#442)

- Drop deprecated 'setup.py test' support. (#507)

- Fix typo: curren -> current in tests/test_clean.py (#504)

- Test on PyPy 7

- Drop test support for end of life Python 3.4

- ``bleach.clean`` behavior parsing embedded MathML and SVG content with RCDATA tags did not match browser behavior and could result in a mutation XSS. Calls to ``bleach.clean`` with ``strip=False`` and ``math`` or ``svg`` tags and one or more of the RCDATA tags ``script``, ``noscript``, ``style``, ``noframes``, ``iframe``, ``noembed``, or ``xmp`` in the allowed tags whitelist were vulnerable to a mutation XSS.

Solution

Update the affected python-bleach packages.

See Also

https://bugzilla.opensuse.org/show_bug.cgi?id=1167379

https://bugzilla.opensuse.org/show_bug.cgi?id=1168280

https://bugzilla.opensuse.org/show_bug.cgi?id=1184547

Plugin Details

Severity: Medium

ID: 148606

File Name: openSUSE-2021-552.nasl

Version: 1.3

Type: local

Agent: unix

Published: 4/15/2021

Updated: 1/4/2024

Supported Sensors: Continuous Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Frictionless Assessment Azure, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.4

Vector: CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N

CVSS Score Source: CVE-2020-6816

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

CVSS Score Source: CVE-2021-23980

Vulnerability Information

CPE: p-cpe:/a:novell:opensuse:python3-bleach, p-cpe:/a:novell:opensuse:python2-bleach, cpe:/o:novell:opensuse:15.2

Required KB Items: Host/local_checks_enabled, Host/SuSE/release, Host/SuSE/rpm-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/14/2021

Vulnerability Publication Date: 3/24/2020

Reference Information

CVE: CVE-2020-6816, CVE-2020-6817, CVE-2021-23980