{"cve":"CVE-2026-66007","nvd":{"published":"2026-07-24T15:19:07.493","modified":"2026-10-24T13:10:00.147","status":"Analyzed","description":"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.","cvss_v4":{"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":6.9},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5},"cwes":["CWE-22"],"references":["https://github.com/huggingface/datasets/commit/f989ef9b4cc6c0039a7a82458eebca49e2b58b4b","https://github.com/huggingface/datasets/issues/8324","https://github.com/huggingface/datasets/pull/8325","https://www.vulncheck.com/advisories/datasets-path-traversal-via-unsanitized-file-name-metadata"],"products":["huggingface:datasets"],"source":"nvd","synced_at":"2026-10-24T16:53:27.712498749+00:00"},"epss":{"cve":"CVE-2026-66007","score":0.0055,"percentile":0.45714,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-379c-qx7v-6h59","url":"https://osv.dev/vulnerability/GHSA-379c-qx7v-6h59","summary":"Hugging Face Datasets folder-based builders allow path traversal through file_name metadata","modified":"2026-10-02T23:11:03.776144963Z","packages":[{"ecosystem":"PyPI","name":"datasets","purl":"pkg:pypi/datasets","ranges":["<5.0.1"],"fixed":["5.0.1"]}]},{"id":"PYSEC-2026-3716","url":"https://osv.dev/vulnerability/PYSEC-2026-3716","summary":"","modified":"2026-10-15T14:45:06.499774727Z","packages":[{"ecosystem":"PyPI","name":"datasets","purl":"pkg:pypi/datasets","ranges":["<5.0.1"],"fixed":["5.0.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}