CVE-2021-23654 Improper Input Validation
Attackers can execute commands via CSV injection in html-to-csv due to lack of input validation on embedded formulas.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-23654?
CVE-2021-23654 is a medium-severity vulnerability in html-to-csv, published on 26 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-1236
Which versions are affected by CVE-2021-23654?
3 open source packages ship an affected version, including html-to-csv. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
html-to-csv PyPI | All versions | None |
html-to-csv PyPI | All versions to 0.1.3 | None |
html-to-csv PyPI | All versions to 0.1.3 | None |
Products include Html-to-Csv Project Html-to-Csv.
How do I fix CVE-2021-23654?
No fix has been published for CVE-2021-23654 yet. Limit exposure of the affected software until one is available.
Is CVE-2021-23654 being exploited?
There is no known exploitation of CVE-2021-23654 in the wild and no public exploit code.
Sources
Also known as GHSA-fwf6-rw69-hhj4, PYSEC-2021-866, SNYK-PYTHON-HTMLTOCSV-1582784.