{"id":"CVE-2021-23654","aliases":["CVE-2021-23654","GHSA-fwf6-rw69-hhj4","PYSEC-2021-866","SNYK-PYTHON-HTMLTOCSV-1582784"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Input Validation","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Esto afecta a todas las versiones del paquete html-to-csv. Cuando se presenta una fórmula insertada en una página HTML, se acepta sin ninguna comprobación y la misma se empuja mientras es convertida en un archivo CSV. A través de esto un actor malicioso puede insertar o generar un enlace malicioso o ejecutar comandos por medio de archivos CSV","source":"nvd"}],"published":"2021-11-26T20:05:11.206Z","modified":"2026-06-17T03:38:51.230Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","score":5.6,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","score":5.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","score":5.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-1236"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"unspecified","status":"affected"}],"product":"html-to-csv","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.1.3"}],"ecosystem":"PyPI","package":"html-to-csv","purl":"pkg:pypi/html-to-csv","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"0.1.3"}],"vendor":"html-to-csv_project","product":"html-to-csv","cpe":"cpe:2.3:a:html-to-csv_project:html-to-csv:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected"}],"ecosystem":"PyPI","package":"html-to-csv","purl":"pkg:pypi/html-to-csv","source":"pysec"}],"references":[{"url":"https://snyk.io/vuln/SNYK-PYTHON-HTMLTOCSV-1582784","tags":["advisory","exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/hanwentao/html2csv/blob/master/html2csv/converter.py","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23654","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/hanwentao/html2csv/issues/9","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-fwf6-rw69-hhj4","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/hanwentao/html2csv","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/html-to-csv/PYSEC-2021-866.yaml","tags":["web"],"sources":["ghsa"]}],"credits":["0xbughunter"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23654","url":"https://www.cve.org/CVERecord?id=CVE-2021-23654","licence":"CVE Terms of Use","modified":"2024-09-16T17:43:55.862Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fwf6-rw69-hhj4","url":"https://github.com/advisories/GHSA-fwf6-rw69-hhj4","licence":"CC-BY-4.0","modified":"2024-09-20T22:02:57.579Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23654","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23654","licence":"Public domain","modified":"2026-06-17T03:38:51.230Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-866","url":"https://osv.dev/vulnerability/PYSEC-2021-866","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:12.383Z"}],"updatedAt":"2026-11-25T22:58:05.763Z","epss":{"score":0.01245,"percentile":0.70113,"date":"2026-12-01T12:00:22.000Z"}}