{"id":"CVE-2022-39217","aliases":["CVE-2022-39217","GHSA-634p-93h9-92vh"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Neutralization of Formula Elements in a CSV File in ghas-to-csv","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThis 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 👇🏻 \n\n```mermaid\ngraph TD\n    A(Repository) -->|developer dismissal, other data input| B(GitHub Advanced Security data)\n    B -->|ghas-to-csv| C(CSV file)\n    C -->|spreadsheet program| D(endpoint executes potentially malicious code)\n```\n\n### Patches\n\nPlease use version `v1` or later.  That tag moves from using `csv` to `defusedcsv` to mitigate this problem.\n\n### Workarounds\n\nThere is no workaround.  Please upgrade to using the latest tag, `v1` (or later).\n\n### References\n\n* CWE-1236 information from [MITRE](https://cwe.mitre.org/data/definitions/1236.html)\n* CSV injection information from [OWASP](https://owasp.org/www-community/attacks/CSV_Injection)\n* CodeQL query for CWE-1236 in Python [here](https://github.com/github/codeql/tree/main/python/ql/src/experimental/Security/CWE-1236)\n* PyPI site for `defusedcsv` [here](https://pypi.org/project/defusedcsv/)\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* Open an issue in this repository [here](https://github.com/some-natalie/ghas-to-csv/issues)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2022-09-16T22:06:55.000Z","modified":"2026-06-17T04:57:56.183Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L","score":5.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L","score":5.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L","score":5.8,"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"}],"cwes":["CWE-74","CWE-1236"],"affected":[{"ranges":[{"version":"< v1","status":"affected"}],"vendor":"some-natalie","product":"ghas-to-csv","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1"}],"ecosystem":"GitHub Actions","package":"some-natalie/ghas-to-csv","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1"}],"vendor":"ghas-to-csv_project","product":"ghas-to-csv","cpe":"cpe:2.3:a:ghas-to-csv_project:ghas-to-csv:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/some-natalie/ghas-to-csv/security/advisories/GHSA-634p-93h9-92vh","tags":["patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/some-natalie/ghas-to-csv/commit/d0b521928fa734513b5cd9c7d9d8e09db50e884a","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39217","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/some-natalie/ghas-to-csv/issues/19","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/some-natalie/ghas-to-csv/pull/20","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/some-natalie/ghas-to-csv","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T13:57:27.158Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-39217","url":"https://www.cve.org/CVERecord?id=CVE-2022-39217","licence":"CVE Terms of Use","modified":"2025-04-23T16:58:22.771Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-634p-93h9-92vh","url":"https://github.com/advisories/GHSA-634p-93h9-92vh","licence":"CC-BY-4.0","modified":"2023-11-08T04:10:15.184Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-39217","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39217","licence":"Public domain","modified":"2026-06-17T04:57:56.183Z"}],"updatedAt":"2026-11-25T22:58:15.088Z","epss":{"score":0.00701,"percentile":0.48797,"date":"2026-11-30T12:00:22.000Z"}}