---
title: "CVE-2026-9856: huggingface huggingface/transformers Vulnerability"
publisher: SpecStream
source: "CVE Program (CVEProject cvelistV5)"
source_url: "https://github.com/CVEProject/cvelistV5"
---

# CVE-2026-9856: huggingface huggingface/transformers Vulnerability

SpecStream dataset, built from [CVE Program (CVEProject cvelistV5)](https://github.com/CVEProject/cvelistV5), updated December 6, 2026.

CVE-2026-9856 is a published software vulnerability affecting huggingface huggingface/transformers. CVSS base score: 7.1 (HIGH). Published August 2, 2026 by CVE Program. 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.

[CVE Vulnerabilities](/data/cve)

SpecStream is the live web data engine for teams and agents.

- CVE ID: CVE-2026-9856
- Status: Published
- Affected vendor: huggingface
- Affected product: huggingface/transformers
- Assigner CNA: CVE Program
- Published date: August 2, 2026
- Last updated: August 3, 2026
- CVSS base score: 7.1 (HIGH)
- CVSS vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
- Weakness (CWE): CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

## Vulnerability data and live monitoring

Query CVE feeds, affected software packages and severity updates through the SpecStream API or export structured CSV files.

- [https://specstream.ai/data/cve](https://specstream.ai/data/cve)
- [https://specstream.ai/signup?src=cve-vulnerabilities](https://specstream.ai/signup?src=cve-vulnerabilities)

CVE Terms of Use (Public Vulnerability Records).

Free to quote with credit and a link. Copying in bulk needs a [data licence](https://specstream.ai/data/licence).

## Business lists in the United States

- [Pediatric anesthesiology practices in the United States](https://specstream.ai/data/businesses/pediatric-anesthesiology-practices/united-states)
- [Truck and industrial vehicle companies in the United States](https://specstream.ai/data/businesses/truck-and-industrial-vehicle-companies/united-states)
- [Business financing companies in the United States](https://specstream.ai/data/businesses/business-financing-companies/united-states)
- [Food and beverage consultants in the United States](https://specstream.ai/data/businesses/food-and-beverage-consultants/united-states)
- [Motorcycle dealers in the United States](https://specstream.ai/data/businesses/motorcycle-dealers/united-states)
- [Structural engineering firms in the United States](https://specstream.ai/data/businesses/structural-engineering-firms/united-states)
