Skip to content

Commit 38936c0

Browse files
authored
chore(deps): use CVE-2023-40267 alias for the audit check (#419)
Looks like `pip-audit` is not recognizing `PYSEC-2023-137` as an alias for `GHSA-pr76-5cm5-w9cj`. Switching to `CVE-2023-40267` ID instead to avoid duplicate errors by `pip-audit`. Missing alias for `GHSA-pr76-5cm5-w9cj` in `PYSEC-2023-137`: pypa/advisory-database#142 GitHub Advisory: https://osv.dev/vulnerability/GHSA-pr76-5cm5-w9cj PYSEC Advisory: https://github.com/pypa/advisory-database/blob/a3bd5be966a999b065ac798d13795760c2e13d43/vulns/gitpython/PYSEC-2023-137.yaml Note: even though Macaron uses PyDriller and GitPython, it is not vulnerable to this CVE because - it does not use unsafe options: https://github.com/oracle/macaron/blob/d6f1cc60a5eb1c26165f530afc73ea735e800e38/src/macaron/slsa_analyzer/git_url.py#L342-L349 - and sanitizes the repository paths before cloning: https://github.com/oracle/macaron/blob/add-CVE-2023-40267-alias/src/macaron/slsa_analyzer/git_url.py#L551-L677 Signed-off-by: behnazh-w <[email protected]>
1 parent 84090bc commit 38936c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,14 @@ requirements.txt: pyproject.toml
225225
# editable mode (like the one in development here) because they may not have
226226
# a PyPI entry; also print out CVE description and potential fixes if audit
227227
# found an issue.
228-
# TODO: do not ignore GHSA-pr76-5cm5-w9cj once the patch is out.
228+
# TODO: do not ignore CVE-2023-40267 once the patch is out.
229229
# See: https://github.com/ishepard/pydriller/issues/280
230230
.PHONY: audit
231231
audit:
232232
if ! $$(python -c "import pip_audit" &> /dev/null); then \
233233
echo "No package pip_audit installed, upgrade your environment!" && exit 1; \
234234
fi;
235-
python -m pip_audit --skip-editable --desc on --fix --dry-run --ignore-vuln GHSA-pr76-5cm5-w9cj
235+
python -m pip_audit --skip-editable --desc on --fix --dry-run --ignore-vuln CVE-2023-40267
236236

237237
# Run some or all checks over the package code base.
238238
.PHONY: check check-code check-bandit check-flake8 check-lint check-mypy check-go check-actionlint

0 commit comments

Comments
 (0)