pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/textproc/py-lxml-html-clean
Module Name: pkgsrc
Committed By: adam
Date: Thu Nov 26 13:18:16 UTC 2026
Modified Files:
pkgsrc/textproc/py-lxml-html-clean: Makefile distinfo
Log Message:
py-lxml-html-clean: updated to 0.4.7
0.4.7 (2026-11-26)
Bugs fixed
* Fixed an XSS vulnerability when ``safe_attrs_only=False`` was used. With
``javascript=True`` (the default) the cleaner only scrubs script from the
attributes listed in ``lxml.html.defs.link_attrs``, so two kinds of
script-bearing attributes slipped through. ``srcdoc`` on ``<iframe>`` holds
a whole HTML document that the browser renders (and that takes priority
over a whitelisted ``src``), giving no-interaction XSS when an iframe is
kept via ``host_whitelist``. ``to``/``from``/``by``/``values`` on the SVG
animation elements ``<set>``/``<animate>``/``<animateTransform>`` with
``attributeName="href"`` set a ``javascript:`` URL on the enclosing SVG
``<a>`` at runtime (also requires ``remove_unknown_tags=False`` and a
click). Both are now removed when ``javascript=True``. This is the same
class of incomplete-blocklist issue as GHSA-4jhm-jv67-739f. The default
``Cleaner()`` uses ``safe_attrs_only=True`` and was never affected.
* Fixed an XSS vulnerability when ``comments=False`` was used to keep
comments. libxml2 parses the content of raw-text elements such as
``<noscript>`` as markup, so a payload like
``<noscript><!--</noscript><img src=x onerror=alert(1)>--></noscript>``
was preserved as a single, seemingly inert comment node. A browser with
scripting enabled instead treats the ``<noscript>`` body as raw text,
closes it at the ``</noscript>`` inside the comment and runs the following
markup, executing the ``onerror`` handler without any user interaction.
Comments are now dropped when they contain an end tag that would close a
raw-text ancestor element (``noscript``, ``noembed``, ``noframes``,
``iframe``, ``xmp``, ``title``, ``textarea``, ``style``, ``script``,
``plaintext``). This is the same class of parser differential as
GHSA-5jfw-gq64-q45f, which had only been addressed for ``<style>`` text.
The default ``Cleaner()`` removes all comments and was never affected.
Benign comments, including commented-out markup inside ordinary elements,
are kept.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 pkgsrc/textproc/py-lxml-html-clean/Makefile
cvs rdiff -u -r1.12 -r1.13 pkgsrc/textproc/py-lxml-html-clean/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/textproc/py-lxml-html-clean/Makefile
diff -u pkgsrc/textproc/py-lxml-html-clean/Makefile:1.17 pkgsrc/textproc/py-lxml-html-clean/Makefile:1.18
--- pkgsrc/textproc/py-lxml-html-clean/Makefile:1.17 Mon Oct 26 15:43:33 2026
+++ pkgsrc/textproc/py-lxml-html-clean/Makefile Thu Nov 26 13:18:16 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.17 2026/10/26 15:43:33 adam Exp $
+# $NetBSD: Makefile,v 1.18 2026/11/26 13:18:16 adam Exp $
-DISTNAME= lxml_html_clean-0.4.6
+DISTNAME= lxml_html_clean-0.4.7
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/g}
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=l/lxml-html-clean/}
Index: pkgsrc/textproc/py-lxml-html-clean/distinfo
diff -u pkgsrc/textproc/py-lxml-html-clean/distinfo:1.12 pkgsrc/textproc/py-lxml-html-clean/distinfo:1.13
--- pkgsrc/textproc/py-lxml-html-clean/distinfo:1.12 Mon Oct 26 15:43:33 2026
+++ pkgsrc/textproc/py-lxml-html-clean/distinfo Thu Nov 26 13:18:16 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.12 2026/10/26 15:43:33 adam Exp $
+$NetBSD: distinfo,v 1.13 2026/11/26 13:18:16 adam Exp $
-BLAKE2s (lxml_html_clean-0.4.6.tar.gz) = 862a2e6239464278e6a99fc4fabd711fff77f31637f034f2c4b067ec53f10263
-SHA512 (lxml_html_clean-0.4.6.tar.gz) = 55aabf4f1e96f2ca9a12acf9c7556bf0619de2b1c89cfc1015e84754b6968f3b774c9377ef53321b7cace95eacc6ed18344d14ea5cc3c88e5839579be0e898d4
-Size (lxml_html_clean-0.4.6.tar.gz) = 26385 bytes
+BLAKE2s (lxml_html_clean-0.4.7.tar.gz) = 72ba286c9cf0bc74d6a7bf2ee9b4afaf2ba2923b760144a1157a6e8e999a2a13
+SHA512 (lxml_html_clean-0.4.7.tar.gz) = ec005efbd14f9949e55af5b5ebc5b05cc0d10013e1d53a32b0ff5bceb4a3e5442f8f6665440ebaa26e9c8dec1e1c4530289dff112fe70d1ed3617cf752a24362
+Size (lxml_html_clean-0.4.7.tar.gz) = 30484 bytes
Home |
Main Index |
Thread Index |
Old Index