7.1

CVE-2026-9856: Path Traversal in huggingface/transformers

Awaiting analysis
AliasesGHSA-xrqw-3rrv-vx5wPYSEC-2026-3929CGA-4q3h-9543-63vw
Published 02-08-2026Last modified 03-08-2026

Vulnerability summary

CVE-2026-9856 is a high (CVSS 7.1) vulnerability in huggingface huggingface/transformers. EPSS estimates a 0.46% chance of exploitation in the next 30 days, higher than 39.8% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.1, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.1/10
010
High · v3.0 (CVE.org)
EPSS score
0.46%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 02-08-2026
    PublishedVulnerability first disclosed.
  2. 03-08-2026
    Last modifiedVulnerability information updated.

Description

A vulnerability in huggingface/transformers versions <=5.8.0.dev0 allows an attacker to perform arbitrary file writes via path traversal. The issue resides in the `save_pretrained()` methods of `PreTrainedTokenizerBase` and `ProcessorMixin`, where keys from the `chat_template` dictionary are used directly as filenames without proper validation. An attacker can exploit this by publishing a malicious Hugging Face Hub repository with a crafted `tokenizer_config.json` file. When a victim downloads and saves the tokenizer or processor, the attacker-controlled keys can escape the intended save directory, enabling arbitrary file writes with attacker-controlled content. This vulnerability affects multiple processors inheriting from `ProcessorMixin`, including Idefics, Florence, Gemma, Phi, and Qwen-VL.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.46%

Chance of exploitation in the next 30 days

Percentile

40%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.46% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard10 products
  • open-webui< 0.11.3-r2
  • py3.10-transformers-4.51All versions (No fix recorded)
  • py3.10-transformers-4.56All versions (No fix recorded)
  • py3.11-transformers-4.51All versions (No fix recorded)
  • py3.11-transformers-4.56All versions (No fix recorded)
Huggingface1 product
PyPI1 product
  • transformers< 5.10.0
Wolfi1 product
  • open-webui< 0.11.3-r2

4 vendors · 13 products

References

8 links