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

Published Jul 24, 2026
·
Updated

Datasets through 5.0.0, fixed in commit f989ef9, contains a path traversal vulnerability in folder-based dataset builders where the filename metadata field is not properly validated before being joined to the dataset directory. Attackers can supply crafted filename values with directory traversal sequences to read arbitrary local files, which are then embedded into output when savetodisk or pushtohub is called.

Affected Software

2 affected components
Datasets<=5.0.0
huggingface Datasets Python<=5.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Datasets folder-based dataset builders to a version that resolves this vulnerability.

    Fixed in 5.0.0Patch f989ef9

Event History

Jul 24, 2026
CVE Published
via MITRE·02:58 PM
Data Sourced
via MITRE·02:58 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:19 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-66007?

CVE-2026-66007 has a medium severity rating with a score of 6.5.

2

How do I fix CVE-2026-66007?

To fix CVE-2026-66007, update to the version that includes the patch identified by commit f989ef9.

3

What type of vulnerability is CVE-2026-66007?

CVE-2026-66007 is a path traversal vulnerability affecting folder-based dataset builders.

4

What software is affected by CVE-2026-66007?

CVE-2026-66007 affects the Datasets software version up to 5.0.0.

5

What attack vector is associated with CVE-2026-66007?

CVE-2026-66007 can be exploited by attackers sending crafted file_name values with directory traversal sequences.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203