hanwentao/html2csv · Security
Improper Neutralization of Formula Elements in a CSV File in html-2-csv
- GHSA ID
- GHSA-fwf6-rw69-hhj4
- CVE ID
- CVE-2021-23654
- Severity
- medium
- Published
- Updated
- CVSS
- 5.6 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
- CVSS v3
- 5.6 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
- CVSS v4
- 6.3 · CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Description
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.
CWEs
- CWE-1236 · Improper Neutralization of Formula Elements in a CSV File
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-23654 ↗
- https://snyk.io/vuln/SNYK-PYTHON-HTMLTOCSV-1582784 ↗
- https://github.com/hanwentao/html2csv/issues/9 ↗
- https://github.com/advisories/GHSA-fwf6-rw69-hhj4 ↗
- https://github.com/hanwentao/html2csv/blob/master/html2csv/converter.py ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/html-to-csv/PYSEC-2021-866.yaml ↗