CVE-2026-66007: Hugging Face Datasets path traversal in folder-based builders
CVE-2026-66007 · Severity: medium · CVSS 6.5 · Published 2026-07-24
Hugging Face Datasets through version 5.0.0 contains a path traversal vulnerability in folder-based dataset builders where the file_name metadata field is not properly validated. This allows attackers to read arbitrary local files when a user loads a malicious dataset.
No. Junglewise Threat Intelligence has no report of CVE-2026-66007 being exploited in the wild.
How severe is CVE-2026-66007?
Medium severity, with a CVSS score of 6.5, published 24 July 2026.
Which products and versions are affected?
Hugging Face Datasets <= 5.0.0; datasets (PyPI) < 5.0.1, ECOSYSTEM:introduced=0,fixed=5.0.1.
Is there a fix for CVE-2026-66007?
Yes. datasets (PyPI): upgrade to 5.0.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2026-66007?
Check whether you run Hugging Face Datasets or datasets (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.