CVE-2026-66007

Medium

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.

SeverityMedium
CVSS6.5
Exploit probability—
ProductHuggingface Datasets
PublishedJul 24, 2026
First seenJul 24, 2026

How to fix

Affected products

ProductAffected versionsFixed in
huggingface datasetsv ≤ 5.0.0—
datasetsPyPIv < 5.0.15.0.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.