Medium severity · published Jul 24, 2026
CVE-2026-66007
Datasets Path Traversal via Unsanitized file_name Metadata
6.5
CVSS
0.5%
EPSS
No
On KEV
Description
Datasets through 5.0.0, fixed in commit 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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 46% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DA
datasets · huggingface
through 5.0.0 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-66007
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-66007
technical-description
https://github.com/huggingface/datasets/issues/8324
issue-tracking
https://github.com/huggingface/datasets/pull/8325
patch
https://github.com/huggingface/datasets/commit/f989ef9b4cc6c0039a7a82458eebca49e2b58b4b
third-party-advisory
https://www.vulncheck.com/advisories/datasets-path-traversal-via-unsanitized-file-name-metadata
More from datasets
8.8
CVE-2026-57845
Hugging Face Datasets through 5.1.0 Pickle Deserialization RCE via Pandas Builder
6.6
CVE-2026-65010
Datasets Symlink-following Arbitrary File Write via Extractor.extract()
