# CVE-2021-23654: Improper Input Validation

- Severity: Medium 5.6 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.24%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-11-26T20:05:11.206Z
- Modified: 2026-06-17T03:38:51.230Z
- Also known as: GHSA-fwf6-rw69-hhj4, PYSEC-2021-866, SNYK-PYTHON-HTMLTOCSV-1582784
- Weaknesses: CWE-1236
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- html-to-csv: before unspecified
- html-to-csv (PyPI): up to 0.1.3; all versions
- html-to-csv_project html-to-csv: up to 0.1.3

## Every score

- snyk: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-PYTHON-HTMLTOCSV-1582784> (exploit, advisory, third-party-advisory, web)
- <https://github.com/hanwentao/html2csv/blob/master/html2csv/converter.py> (exploit, third-party-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2021-23654](https://www.cve.org/CVERecord?id=CVE-2021-23654), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-fwf6-rw69-hhj4](https://github.com/advisories/GHSA-fwf6-rw69-hhj4), CC-BY-4.0, modified 2024-09-20
- NVD: [CVE-2021-23654](https://nvd.nist.gov/vuln/detail/CVE-2021-23654), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-866](https://osv.dev/vulnerability/PYSEC-2021-866), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-23654 · Whole record: https://cve.day/CVE-2021-23654.json · Rebuilt by cve.day 2026-11-25T22:58:05.763Z
