Intel

AIKIDO-2026-400018

huggingface-hub is vulnerable to Path Traversal

Path Traversal Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 5 days ago

59

Medium Risk

This Affects:

PYTHONhuggingface-hub
0.8.1 - 1.31.0
Fixed in 1.32.0
Are you affected? Scan for Free

TL;DR

Commit operations such as CommitOperationAdd accepted a path_in_repo value containing embedded .. segments without rejecting it. A path built from externally influenced input could escape the intended repository directory structure once the commit is applied. The fix validates commit paths and rejects any that contain embedded .. segments.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you build commit operation paths from externally influenced input.

Background info

huggingface-hub is vulnerable to Path Traversal in versions 0.8.1 - 1.31.0.

How to fix this

Upgrade the huggingface-hub library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform