CVE-2021-23654
CRITICAL 9.8CVSS 3.1Improper 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.
- Published
- 26 Nov 2021
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-1236
- Also known as
- GHSA-fwf6-rw69-hhj4PYSEC-2021-866SNYK-PYTHON-HTMLTOCSV-1582784
- Sources
- NVDJSONOSV GHSA-fwf6-rw69-hhj4JSONOSV PYSEC-2021-866JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.6 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.6 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | html-to-csv_project | html-to-csvcpe:2.3:a:html-to-csv_project:html-to-csv:*:*:*:*:*:python:*:* |
<= 0.1.3 | |
| OSV | PyPI | html-to-csv | <= 0.1.3 | |
| OSV | PyPI | html-to-csv | all versions |
References
- https://github.com/hanwentao/html2csv/blob/master/html2csv/converter.py · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-PYTHON-HTMLTOCSV-1582784 · Exploit, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-23654 · ADVISORY
- https://github.com/hanwentao/html2csv/issues/9 · WEB
- https://github.com/advisories/GHSA-fwf6-rw69-hhj4 · ADVISORY
- https://github.com/hanwentao/html2csv · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/html-to-csv/PYSEC-2021-866.yaml · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 26 Nov 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 26 Nov 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 30 Nov 2021)