MediumVulnerability
GHSA-379c-qx7v-6h59: Hugging Face Datasets folder-based builders allow path traversal through file_name metadata
- Identifiers
- CVE-2026-66007GHSA-379c-qx7v-6h59
- Published
- Record updated
- Affected
- datasets < 5.0.1
- Fixed in
- 5.0.1
- released July 28, 2026, 4 days after disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.5%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .
Summary
Hugging Face Datasets through 5.0.0 contains a path traversal flaw in its folder-based dataset builders. The file_name metadata field is joined to the dataset directory without proper validation, so crafted values with traversal sequences can read arbitrary local files, which are then embedded into output on save_to_disk or push_to_hub.
Mitigation
Fixed in f989ef9.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- datasetsPyPILLM dependency since 2020-09-10, 78 tracked dependents
Related items
- HighCVE-2026-142491: eole eval injection in pydantic configuration validatorsSame vendor, NVD/CVE Database
- MediumCVE-2026-142248: MLflow through 3.18.0 contains a server-side request forgery vulnerability in the AI Gateway LiteLLM provider that…Same vendor, NVD/CVE Database
- HighCVE-2026-141343: DLOmix unsafe deserialization code execution via malicious PyTorch model filesSame vendor, NVD/CVE Database
- HighCVE-2026-139989: Languagemodels 1.0.0 contains a template injection vulnerability in Config.use_hf_model that allows remote attackers to…Same vendor, NVD/CVE Database
- MediumCVE-2026-134825: Gradio 6.27.0 before 6.32.0 contains an authentication bypass vulnerability in gradio/history.py that allows remote…Same vendor, NVD/CVE Database