Advisory

GHSA-379c-qx7v-6h59

Also known as: CVE-2026-66007, PYSEC-2026-3716

Summary

Hugging Face Datasets folder-based builders allow path traversal through file_name metadata

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-07-24 15:33 UTC
Modified
2026-10-02 23:11 UTC

Affected packages and fixes

datasets

PyPI · All systems

Affected

  • introduced 0, fixed 5.0.1 (ecosystem)

Fixed versions

5.0.1

Fix

  • Fixed version 5.0.1
    pip install --upgrade datasets==5.0.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences