# CVE-2026-66007: Hugging Face Datasets path traversal in folder-based builders

Source: https://junglewise.ai/threats/cve-2026-66007-hugging-face-datasets-path-traversal-in-folder-based-builders  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-24  
License: CC BY 4.0 with a link back

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.

Technologies: [Hugging Face Datasets](https://junglewise.ai/threats/technologies/datasets). Vendors: [Hugging Face](https://junglewise.ai/threats/vendors/hugging-face), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-66007 exploited in the wild?** 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.

## How to fix

- datasets (PyPI): upgrade to 5.0.1 or later

  ```sh
  pip install "datasets>=5.0.1"
  ```


## Affected products

- Hugging Face Datasets <= 5.0.0
- datasets (PyPI) < 5.0.1, ECOSYSTEM:introduced=0,fixed=5.0.1

## Identifiers

- CVE-2026-66007
- GHSA-379c-qx7v-6h59
- PYSEC-2026-3716

## Related threats

- [Hugging Face Datasets insecure deserialization in pandas builder](https://junglewise.ai/threats/cve-2026-57845-hugging-face-datasets-through-5-1-0-contains-an-insecure)
- [Hugging Face Datasets symlink following in Extractor.extract](https://junglewise.ai/threats/cve-2026-65010-hugging-face-datasets-symlink-following-in-extractor-extract)
