Skip to content

Commit 39b106c

Browse files
committed
fix(deps): replace safety with pip-audit to resolve CVE-2025-14009
safety pulls in nltk 3.9.2 which has a critical Zip Slip vulnerability (CVE-2025-14009) with no patched version available. pip-audit provides the same dependency vulnerability scanning without the nltk dependency, using the OSV database (PyPA-maintained). Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
1 parent 32e9f39 commit 39b106c

3 files changed

Lines changed: 204 additions & 380 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,18 +96,18 @@ jobs:
9696
- name: Install dependencies
9797
run: |
9898
python -m pip install --upgrade pip
99-
pip install bandit safety
99+
pip install bandit pip-audit
100100
101101
- name: Run bandit
102102
run: |
103103
bandit -r cli_audit -f json -o bandit-report.json || true
104104
bandit -r cli_audit
105105
continue-on-error: true
106106

107-
- name: Run safety check
107+
- name: Run pip-audit
108108
run: |
109-
safety check --json || true
110-
safety check
109+
pip-audit --desc --fix --dry-run || true
110+
pip-audit
111111
continue-on-error: true
112112

113113
build:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ dev = [
4242
"isort>=7.0.0",
4343
"build>=1.3.0",
4444
"twine>=6.2.0",
45-
"safety>=3.7.0",
45+
"pip-audit>=2.10.0",
4646
"markdown>=3.10",
4747
]
4848

0 commit comments

Comments
 (0)