lxml_html_clean
Motivation
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.
Important: the HTML Cleaner in lxml_html_clean is not considered appropriate for security sensitive environments. See e.g. nh3 for an alternative.
This project uses functions from Python's urllib.parse for URL parsing which do not validate inputs. For more information on potential security risks, refer to the URL parsing security documentation. A maliciously crafted URL could potentially bypass the allowed hosts check in Cleaner.
Installation
You can install this project directly via pip install lxml_html_clean or as an extra of lxml
via pip install lxml[html_clean]. Both ways install this project together with lxml itself.
Security
For discussions regarding security-related issues or any sensitive reports, please contact us privately. You can reach out to lbalhar(at)redhat.com or frenzy.madness(at)gmail.com to ensure your concerns are addressed confidentially and securely.
Documentation
https://lxml-html-clean.readthedocs.io/
License
BSD-3-Clause
Release files for lxml-html-clean 0.4.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lxml_html_clean-0.4.5.tar.gz | 24.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lxml_html_clean-0.4.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.7 kB
Release files / lxml_html_clean-0.4.5.tar.gz
| Download URL | lxml_html_clean-0.4.5.tar.gz |
|---|---|
| Size | 24.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2a4c7d5beedd17cd7b484d848a0571e54baa239a4f9df5546e3acba7f990560
|
|
BLAKE2b-256 checksum How to use checksums |
0a63195dfdde380a84df309e3bccf4384b034b745dba43426886f7ae623b4fba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / lxml_html_clean-0.4.5-py3-none-any.whl
| Download URL | lxml_html_clean-0.4.5-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c76fcadd1e5bfb9b8bafc2200d51e4e78eb0dad67f56881c21dfb6484c7e7746
|
|
BLAKE2b-256 checksum How to use checksums |
6abd6e2b76a6c5dee10397db9c929f0c5066766ec1036046f0335b7ca7ca08b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|