datasets pinned <4.0 blocks fix for CVE-2026-66007 (path traversal), same in 0.17.0
Author: SPECT3RRCreated Sep 29, 2026Updated Sep 29, 2026
Labelsneeds-triage
garak's dependency spec pins datasets>=3.0.0,<4.0 (both pyproject.toml and requirements.txt). This is unchanged in the current latest release, 0.17.0.
This range is entirely inside the vulnerable range for CVE-2026-66007 — a path traversal (CWE-22) in datasets' folder-based dataset builders, where an unsanitized file_name metadata field lets a crafted dataset read arbitrary local files via directory traversal, exposed when save_to_disk()/push_to_hub() is called on the loaded dataset. Fixed upstream in datasets 5.0.1 (advisory: PYSEC-2026-3716).
Because garak caps datasets<4.0, downstream consumers can't pick up the fix without breaking garak's own install:
pip install --dry-run garak==0.17.0 datasets==5.0.1
# ResolutionImpossible: garak 0.17.0 depends on datasets<4.0,>=3.0.0Could the datasets ceiling be raised/tested against >=5.0.1?
Source: NVIDIA/garak