The NetBSD Project

CVS log for pkgsrc/textproc/py-lxml-html-clean/Makefile

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / textproc / py-lxml-html-clean

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Oct 26 15:43:33 2026 UTC (2 weeks, 6 days ago) by adam
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -2 lines
py-lxml-html-clean: updated to 0.4.6

0.4.6 (2026-10-26)

Bugs fixed

* Fixed a ReDoS (regular expression denial of service) vulnerability in the
  CSS ``expression()`` sanitizer. The pattern ``expression\s*\(.*?\)`` with
  ``re.S`` was quadratic when input contained many ``expression(`` tokens
  without a closing parenthesis. The body is now bounded to 1024 characters;
  longer bodies are handled fail-closed by ``_has_sneaky_javascript()``, which
  drops the entire style. Reported by Brian Willows.

* Fixed a ReDoS vulnerability in the conditional comment detector used when
  ``comments=False``. The pattern ``\[if\s+.*?]\s*>`` with ``re.S`` was
  quadratic when comment text contained many ``[if`` tokens without a closing
  ``]>``. Replaced with a linear two-pass search. Reported by Brian Willows.

* Fixed a ReDoS vulnerability in the CSS comment stripper. The pattern
  ``/\*.*?\*/`` with ``re.S`` was quadratic when style content contained many
  ``/*`` tokens without a closing ``*/``. Replaced with a linear
  ``str.find()``-based scan. Reachable under default configuration via
  ``<style>`` element content.

* Fixed a ReDoS vulnerability in the image data-URL scanner. The pattern
  ``data:image/(.+?);base64,`` was quadratic when input contained many
  ``data:image/`` tokens without a following ``;base64,``. The MIME subtype
  body is now bounded to 255 characters. Reachable under default configuration
  via link attributes and ``<style>`` element content.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Oct 16 19:44:17 2026 UTC (4 weeks, 2 days ago) by adam
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
Forget Python 3.10

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Jun 28 15:41:40 2026 UTC (4 months, 2 weeks ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -2 lines
*: limit Python versions due to py-numpy dropping Python 3.11 support

Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri May 22 12:50:00 2026 UTC (5 months, 3 weeks ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2026Q2-base, pkgsrc-2026Q2
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3 lines
py-lxml-html-clean: updated to 0.4.5

0.4.5

Bugs fixed

* Fixed a security vulnerability where ``javascript:`` URLs in ``xlink:href``
  attributes were not sanitized when``safe_attrs_only=False``, allowing
  cross-site scripting (XSS) attacks. The fix requires ``lxml>=6.1.1``,
  which adds ``xlink:href`` to the set of link attributes iterated by
  ``rewrite_links()``. Reported by Guillem Lefait (@glefait).

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Mar 1 08:29:31 2026 UTC (8 months, 2 weeks ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2026Q1-base, pkgsrc-2026Q1
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
py-lxml-html-clean: updated to 0.4.4

0.4.4 (2026-02-26)

Bugs fixed

* Fixed a bug where Unicode escapes in CSS were not properly decoded
  before security checks. This prevents attackers from bypassing filters
  using escape sequences.
* Fixed a security issue where ``<base>`` tags could be used for URL
  hijacking attacks. The ``<base>`` tag is now automatically removed
  whenever the ``<head>`` tag is removed (via ``page_structure=True``
  or manual configuration), as ``<base>`` must be inside ``<head>``
  according to HTML specifications.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Oct 9 07:58:00 2025 UTC (13 months, 1 week ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2025Q4-base, pkgsrc-2025Q4
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
*: remove reference to (removed) Python 3.9

Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Oct 3 05:45:35 2025 UTC (13 months, 1 week ago) by adam
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2 lines
py-lxml-html-clean: updated to 0.4.3

0.4.3 (2025-10-02)

Maintenance

* Tests updated to work correctly with new lxml and libxml2 releases.
* Python 3.6 and 3.7 are no longer tested.
* Improved documentation about CSS removal behavior.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Jul 5 11:44:16 2025 UTC (16 months, 1 week ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2025Q3-base, pkgsrc-2025Q3
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -1 lines
*: some more recursive Python restrictions on Python 3.11+

Reported in SmartOS bulk build

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Apr 12 19:17:27 2025 UTC (19 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2025Q2-base, pkgsrc-2025Q2
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3 lines
py-lxml-html-clean: updated to 0.4.2

0.4.2 (2025-04-09)

Bugs fixed

* `lxml_html_clean` now correctly handles HTML input as bytes
  as it did before the 0.2.0 release.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Nov 17 12:28:01 2024 UTC (23 months, 4 weeks ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2025Q1-base, pkgsrc-2025Q1, pkgsrc-2024Q4-base, pkgsrc-2024Q4
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
py-lxml-html-clean: updated to 0.4.1

0.4.1 (2024-11-15)

Bugs fixed

* Removed superfluous debug prints.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Nov 16 10:19:49 2024 UTC (2 years ago) by adam
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
py-lxml-html-clean: updated to 0.4.0

0.4.0 (2024-11-12)

Bugs fixed

* The ``Cleaner()`` now scans for hidden JavaScript code embedded
  within CSS comments. In certain contexts, such as within ``<svg>`` or ``<math>`` tags,
  ``<style>`` tags may lose their intended function, allowing comments
  like ``/* foo */`` to potentially be executed by the browser.
  If a suspicious content is detected, only the comment is removed.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Nov 11 07:29:05 2024 UTC (2 years ago) by wiz
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +1 -2 lines
py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Oct 14 05:13:13 2024 UTC (2 years, 1 month ago) by adam
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
py-lxml-html-clean: updated to 0.3.1

0.3.1 (2024-10-09)

Features added
* Do not parse URL addresses when it is not necessary.

0.3.0 (2024-10-09)

Features added
* Parsing of URL addresses has been enhanced and Cleaner removes ambiguous URLs.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Sep 7 05:39:07 2024 UTC (2 years, 2 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2024Q3-base, pkgsrc-2024Q3
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
py-lxml-html-clean: updated to 0.2.2

0.2.2 (2024-08-30)

Bugs fixed
* sdist now includes all test files and changelog.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Aug 29 12:25:11 2024 UTC (2 years, 2 months ago) by adam
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -4 lines
py-lxml-html-clean: updated to 0.2.1

0.2.1

Bugs fixed

Memory efficiency is now much better for HTML pages where cleaner removes a lot of elements.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Jul 30 03:52:59 2024 UTC (2 years, 3 months ago) by adam
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2 lines
py-lxml-html-clean: updated to 0.2.0

0.2.0 (2024-07-29)

Features added

ASCII control characters (except HT, VT, CR and LF) are now removed from string inputs before they're parsed by lxml/libxml2.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon May 27 14:39:28 2024 UTC (2 years, 5 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2024Q2-base, pkgsrc-2024Q2
py-lxml-html-clean: added version 0.1.1

This project was initially a part of lxml. Because HTML cleaner is designed as
blocklist-based, many reports about possible security vulnerabilities were
filed for lxml and that make the project problematic for security-sensitive
environments. Therefore we decided to extract the problematic part to a
separate project.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>