Path Traversal in Huggingface Datasets

CVE-2026-66007

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.

Vulnerability class: Path Traversal (Directory Traversal)

Published · last modified .

CVSS v3 metric

CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N.

EPSS exploit prediction

EPSS: 0.005 (45.2th percentile), scored .

Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 45th percentile — 45.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2026-66007: held from 0.008 to 0.005.

EPSS over last 30 days · oldest: 0.008 · newest: 0.005 · change: -0.002

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-66007?
CVE-2026-66007 is a medium-severity vulnerability in Huggingface Datasets, classified under Path Traversal. CVSS score: 6.5/10. Published 2026-07-24.
How severe is CVE-2026-66007?
Medium severity. CVSS v3 base score is 6.5 out of 10.