5.8medium
Improper Neutralization of Formula Elements in a CSV File in ghas-to-csv
- Severity
- 5.8medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.70% (higher than 49% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-634p-93h9-92vh
Description
some-natalie/ghas-to-csv (GitHub Advanced Security to CSV) is a GitHub action which scrapes the GitHub Advanced Security API and shoves it into a CSV. In affected versions this GitHub Action creates a CSV file without sanitizing the output of the APIs. If an alert is dismissed or any other custom field contains executable code / formulas, it might be run when an endpoint opens that CSV file in a spreadsheet program. This issue has been addressed in version `v1`. Users are advised to use `v1` or later. There are no known workarounds for this issue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| some-natalie ghas-to-csv | < v1 | CVE List |
| some-natalie/ghas-to-csv (GitHub Actions) | before 1 | GitHub Advisory Database |
| ghas-to-csv_project ghas-to-csv | before 1 | NVD |
All scores
| GitHub_M | 5.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L |
| GitHub | 5.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
some-natalie/ghas-to-csv (GitHub Advanced Security to CSV) is a GitHub action which scrapes the GitHub Advanced Security API and shoves it into a CSV. In affected versions this GitHub Action creates a CSV file without sanitizing the output of the APIs. If an alert is dismissed or any other custom field contains executable code / formulas, it might be run when an endpoint opens that CSV file in a spreadsheet program. This issue has been addressed in version `v1`. Users are advised to use `v1` or later. There are no known workarounds for this issue.
GitHub Advisory Database
Impact
This GitHub Action creates a CSV file without sanitizing the output of the APIs. If an alert is dismissed or any other custom field contains executable code / formulas, it might be run when an endpoint opens that CSV file in a spreadsheet program. The data flow looks like this 馃憞馃徎
graph TD
A(Repository) -->|developer dismissal, other data input| B(GitHub Advanced Security data)
B -->|ghas-to-csv| C(CSV file)
C -->|spreadsheet program| D(endpoint executes potentially malicious code)
Patches
Please use version v1 or later. That tag moves from using csv to defusedcsv to mitigate this problem.
Workarounds
There is no workaround. Please upgrade to using the latest tag, v1 (or later).
References
- CWE-1236 information from MITRE
- CSV injection information from OWASP
- CodeQL query for CWE-1236 in Python here
- PyPI site for
defusedcsvhere
For more information
If you have any questions or comments about this advisory:
- Open an issue in this repository here
NVD (es)
some-natalie/ghas-to-csv (GitHub Advanced Security to CSV) es una acci贸n de GitHub que raspa la API de GitHub Advanced Security y la mete en un CSV. En las versiones afectadas, esta acci贸n de GitHub crea un archivo CSV sin sanear la salida de las API. Si es descartada una alerta o cualquier otro campo personalizado contiene c贸digo ejecutable / f贸rmulas, podr铆a ejecutarse cuando un endpoint abre ese archivo CSV en un programa de hoja de c谩lculo. Este problema ha sido abordado en versi贸n "v1". Es recomendado a usuarios usar la versi贸n "v1" o posterior. No se presentan mitigaciones conocidas para este problema
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-39217 changed 2025-04-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-634p-93h9-92vh changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2022-39217 changed 2026-06-17 | Public domain |