Hugging Face Datasets folder-based builders allow path traversal through file_name metadata
CVE-2026-66007 · GHSA-379c-qx7v-6h59 · published 2026-07-24 · updated 2026-10-02
- Severity
- Medium
- CVSS score
- 6.5
- Chance of exploitation (EPSS)
- 0.55%
- Fixed in
- 5.0.1
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
Datasets through 5.0.0, fixed in 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.
Upgrade datasets to 5.0.1 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| datasets | PyPI | < 5.0.1 | 5.0.1 |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- CriticalVibe-Trading FastAPI endpoints permit unauthenticated access, file upload, and an RCE chainvibe-trading-ai
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.