Improper Neutralization of Formula Elements in a CSV File in html-2-csv
This affects all versions of package html-to-csv. When there is a formula embedded in a HTML page, it gets accepted without any validation and the same would be pushed while converting it into a CSV file. Through this a malicious actor can embed or generate a malicious link or execute commands via CSV files.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | html-to-csv | <= 0.1.3 | no fix |
References
- https://snyk.io/vuln/SNYK-PYTHON-HTMLTOCSV-1582784
- https://github.com/hanwentao/html2csv/blob/master/html2csv/converter.py
- https://github.com/advisories/GHSA-fwf6-rw69-hhj4
- https://nvd.nist.gov/vuln/detail/CVE-2021-23654
- https://github.com/hanwentao/html2csv/issues/9
- https://github.com/hanwentao/html2csv
- https://github.com/pypa/advisory-database/tree/main/vulns/html-to-csv/PYSEC-2021-866.yaml
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L- Weakness (CWE)
CWE-1236- Platform
- Python (PyPI)
- Package
html-to-csv- Disclosed
- 26.11.2021
- Updated
- 11.10.2026 11:20
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2021-866 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-fwf6-rw69-hhj4 - CC BY 4.0
Vulnerability history: html-to-csv
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.