Skip to main content

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

Metadata

Release files for lxml-html-clean 0.4.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lxml-html-clean 0.4.7
File Size Uploaded Provenance Actions
lxml_html_clean-0.4.7.tar.gz 30.5 kB Without provenance Details for lxml_html_clean-0.4.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lxml-html-clean 0.4.7
File Interpreter ABI Platform Actions
lxml_html_clean-0.4.7-py3-none-any.whl Python 3 none any Details for lxml_html_clean-0.4.7-py3-none-any.whl

Total release size: 47.0 kB

Release files / lxml_html_clean-0.4.7.tar.gz

Download URL lxml_html_clean-0.4.7.tar.gz
Size 30.5 kB
Tags Source
SHA-256 checksum
How to use checksums
840112c2c8a5698adf61adddc84dc978a882f4e0eb2e5639811559f9a96073e6
BLAKE2b-256 checksum
How to use checksums
a43f0472a5f672dd958fce055a0344f7f89df930f18eb92344429e5b94e6e968
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

Release files / lxml_html_clean-0.4.7-py3-none-any.whl

Download URL lxml_html_clean-0.4.7-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f93785f536c0a3fd595dabf9fc00aea2d1538ca7953227933576a3586f6f77e5
BLAKE2b-256 checksum
How to use checksums
b47d48981b2d515ee26a484a505b7478ac0b03ef1084f560e752f37cc35a7452
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

Security for lxml-html-clean 0.4.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page