Improper Neutralization of Formula Elements in a CSV File in ghas-to-csv
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 packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
some-natalie/ghas-to-csvGitHub Actions | < 1 | 1 |
Affected products
1- Range: < v1
Patches
1d0b521928fa7move from `csv` to `defusedcsv` (#20)
4 files changed · +4 −3
requirements.txt+1 −0 modified@@ -1 +1,2 @@ +defusedcsv==2.0.0 requests==2.28.1
src/code_scanning.py+1 −1 modified@@ -1,7 +1,7 @@ # This holds all the things that do stuff for code scanning API # Imports -import csv +from defusedcsv import csv import requests
src/enterprise.py+1 −1 modified@@ -1,7 +1,7 @@ # This holds all the logic for the various enterprise differences. # Imports -import csv +from defusedcsv import csv from time import sleep import requests
src/secret_scanning.py+1 −1 modified@@ -1,7 +1,7 @@ # This holds all the things that do stuff for secret scanning API # Imports -import csv +from defusedcsv import csv import requests
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
6- github.com/advisories/GHSA-634p-93h9-92vhghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-39217ghsaADVISORY
- github.com/some-natalie/ghas-to-csv/commit/d0b521928fa734513b5cd9c7d9d8e09db50e884aghsax_refsource_MISCWEB
- github.com/some-natalie/ghas-to-csv/issues/19ghsaWEB
- github.com/some-natalie/ghas-to-csv/pull/20ghsaWEB
- github.com/some-natalie/ghas-to-csv/security/advisories/GHSA-634p-93h9-92vhghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.