Skip to content

Commit 322357a

Browse files
committed
Release 0.4.5
1 parent baa4a36 commit 322357a

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

CHANGES.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,17 @@ lxml_html_clean changelog
33
=========================
44

55

6-
Unreleased
7-
==========
6+
0.4.5 (2026-05-20)
7+
==================
8+
9+
Bugs fixed
10+
----------
11+
12+
* Fixed a security vulnerability where ``javascript:`` URLs in ``xlink:href``
13+
attributes were not sanitized when``safe_attrs_only=False``, allowing
14+
cross-site scripting (XSS) attacks. The fix requires ``lxml>=6.1.1``,
15+
which adds ``xlink:href`` to the set of link attributes iterated by
16+
``rewrite_links()``. Reported by Guillem Lefait (@glefait).
817

918
0.4.4 (2026-02-26)
1019
==================

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = lxml_html_clean
3-
version = 0.4.4
3+
version = 0.4.5
44
description = HTML cleaner from lxml project
55
long_description = file:README.md
66
long_description_content_type = text/markdown
@@ -25,4 +25,4 @@ classifiers =
2525
packages =
2626
lxml_html_clean
2727
install_requires =
28-
lxml
28+
lxml>=6.1.1

0 commit comments

Comments
 (0)