pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-bleach py-bleach: updated to 3.1.3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fafcb491e200
branches:  trunk
changeset: 413308:fafcb491e200
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Mar 18 10:08:16 2020 +0000

description:
py-bleach: updated to 3.1.3

Version 3.1.3:

**Features**

* Add relative link to code of conduct.
* Drop deprecated 'setup.py test' support.
* Fix typo: curren -> current in tests/test_clean.py
* Test on PyPy 7
* Drop test support for end of life Python 3.4


Version 3.1.2:

**Security fixes**

* ``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.

  This security issue was confirmed in Bleach version v3.1.1. Earlier
  versions are likely affected too.


Version 3.1.1:

**Security fixes**

* ``bleach.clean`` behavior parsing ``noscript`` tags did not match
  browser behavior.

  Calls to ``bleach.clean`` allowing ``noscript`` and one or more of
  the raw text tags (``title``, ``textarea``, ``script``, ``style``,
  ``noembed``, ``noframes``, ``iframe``, and ``xmp``) were vulnerable
  to a mutation XSS.

  This security issue was confirmed in Bleach versions v2.1.4, v3.0.2,
  and v3.1.0. Earlier versions are probably affected too.

diffstat:

 www/py-bleach/Makefile |   7 +++++--
 www/py-bleach/distinfo |  10 +++++-----
 2 files changed, 10 insertions(+), 7 deletions(-)

diffs (36 lines):

diff -r 9c567d613fe8 -r fafcb491e200 www/py-bleach/Makefile
--- a/www/py-bleach/Makefile    Wed Mar 18 10:03:59 2020 +0000
+++ b/www/py-bleach/Makefile    Wed Mar 18 10:08:16 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.13 2019/01/21 12:23:39 adam Exp $
+# $NetBSD: Makefile,v 1.14 2020/03/18 10:08:16 adam Exp $
 
-DISTNAME=      bleach-3.1.0
+DISTNAME=      bleach-3.1.3
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=b/bleach/}
@@ -19,5 +19,8 @@
 
 REPLACE_SH+=   bleach/_vendor/pip_install_vendor.sh
 
+do-test:
+       cd ${WRKSRC} && pytest-${PYVERSSUFFIX} tests
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 9c567d613fe8 -r fafcb491e200 www/py-bleach/distinfo
--- a/www/py-bleach/distinfo    Wed Mar 18 10:03:59 2020 +0000
+++ b/www/py-bleach/distinfo    Wed Mar 18 10:08:16 2020 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.11 2019/01/21 12:23:39 adam Exp $
+$NetBSD: distinfo,v 1.12 2020/03/18 10:08:16 adam Exp $
 
-SHA1 (bleach-3.1.0.tar.gz) = b44b7705a1425338cf429d66f009aa15d09b768d
-RMD160 (bleach-3.1.0.tar.gz) = aa1bda9144a52123e900452e78325da2090cbded
-SHA512 (bleach-3.1.0.tar.gz) = 8db3a54b68fa66a07a3b4b90481557aac06e7783f9c72035a6f037909017354718b67b64153e1cd50cb2c821174b8282837c4c3e667878041a68703b141b2969
-Size (bleach-3.1.0.tar.gz) = 167814 bytes
+SHA1 (bleach-3.1.3.tar.gz) = 09306029c815f77e7685bacfbc01228e80d9b76d
+RMD160 (bleach-3.1.3.tar.gz) = 6033fa4236a6c51ad107dae858a092dee88a15fb
+SHA512 (bleach-3.1.3.tar.gz) = 6c46504833ac9aa83ea056b6a2970aa539774301b14b5f0d7ae5abb9576ace56b7e027b718159c8ed83d37ae78b4db1083eb12b1cafcff10429399025fb5ab4e
+Size (bleach-3.1.3.tar.gz) = 176601 bytes



Home | Main Index | Thread Index | Old Index