datasets
Affected
- introduced
0, fixed5.0.1(ecosystem)
Fixed versions
5.0.1
Fix
- Fixed version
5.0.1pip install --upgrade datasets==5.0.1
Advisory
Also known as: CVE-2026-66007, PYSEC-2026-3716
Hugging Face Datasets folder-based builders allow path traversal through file_name metadata
Datasets through 5.0.0, fixed in f989ef9, contains a path traversal vulnerability in folder-based dataset builders where the file_name metadata field is not properly validated before being joined to the dataset directory. Attackers can supply crafted file_name values with directory traversal sequences to read arbitrary local files, which are then embedded into output when save_to_disk or push_to_hub is called.
Medium Basis: The source's own band: MODERATE
0, fixed 5.0.1 (ecosystem)5.0.1
5.0.1pip install --upgrade datasets==5.0.1Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0