CVE-2026-66007 MEDIUM

CVE-2026-66007: Datasets Path Traversal via Unsanitized file_name Metadata

Vendor Huggingface
Product datasets
Weakness CWE-22 · Path traversal
Published July 24, 2026
Last update July 24, 2026

CVSS base score

6.9/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction
Confidentiality
Integrity

CVSS 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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

July 24, 2026 CVE published
July 24, 2026 Record updated

Related vulnerabilities

04Related CVE