CVE-2021-23654 json
Improper Input Validation
published 2021-11-26 4 y ago modified 2026-06-17 4 mo ago also GHSA-fwf6-rw69-hhj4 , PYSEC-2021-866 , EUVD-2021-0097
- cvss
- 5.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 69%
- public exploits
- 0
- none known
Summary
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.
Exploit prediction
1.24% chance of exploitation in the next 30 days, higher than 69% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-PYTHON-HTMLTOCSV-1582784 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/hanwentao/html2csv/blob/master/html2csv/converter.py referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.6 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 5.6 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | html-to-csv | <=0.1.3 all versions |
no fix listed |
Affected products
- n/a html-to-csv
Classification
- Weakness
-
- CWE-1236 Improper Neutralization of Formula Elements in a CSV File
References
-
snyk.io
/vuln/SNYK-PYTHON-HTMLTOCSV-1582784
web, exploit, third-party-advisory, advisory
-
github.com
/hanwentao/html2csv/blob/master/html2csv/converter.py
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-23654
advisory
-
github.com
/hanwentao/html2csv/issues/9
web
-
github.com
/advisories/GHSA-fwf6-rw69-hhj4
advisory
-
github.com
/hanwentao/html2csv
package
-
github.com
/pypa/advisory-database/tree/main/vulns/html-to-csv/PYSEC-2021-866.yaml
web
Sources
- CVE List CVE-2021-23654
- GitHub Advisory GHSA-fwf6-rw69-hhj4
- NVD CVE-2021-23654
- OSV PYSEC-2021-866
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.