Skip to content
MediumVulnerability

GHSA-379c-qx7v-6h59: Hugging Face Datasets folder-based builders allow path traversal through file_name metadata

Published
Record updated
View JSON
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.