Advisory

PYSEC-2026-3716

Also known as: CVE-2026-66007, GHSA-379c-qx7v-6h59

Summary

The record has no summary.

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-07-24 15:19 UTC
Modified
2026-10-15 14:45 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: PyPA Advisory Database · CC BY 4.0

Sources & licences