What is CVE-2026-9856?
A path traversal vulnerability in Hugging Face Transformers versions <=5.8.0.dev0 allows arbitrary file writes via the `save_pretrained()` method. The flaw exploits keys from the `chat_template` dictionary, potentially leading to unauthorized file manipulation on the system. Users should upgrade to the latest patched version immediately.
Azərbaycanca: Hugging Face Transformers kitabxanasının 5.8.0.dev0 və aşağı versiyalarında `save_pretrained()` metodunda path traversal zəifliyi aşkarlanıb. Təcavüzkar `chat_template` lüğət açarları vasitəsilə ixtiyari fayl yazma əməliyyatı həyata keçirə bilər. Bu zəiflikdən qorunmaq üçün kitabxananı ən son versiyaya yeniləmək tövsiyə olunur.
Related CVEs
link basis: same weakness class CWE-22
FAQ2
Which versions of the Hugging Face Transformers library are vulnerable to the CVE-2026-9856 path traversal flaw?
Hugging Face Transformers versions 5.8.0.dev0 and below are vulnerable to this flaw.
How can an attacker perform arbitrary file writes by exploiting CVE-2026-9856?
An attacker can perform arbitrary file writes via the `save_pretrained()` method by exploiting keys from the `chat_template` dictionary.
See also6
This explainer is AI-written from source data — skopnix's own reporting on this CVE; CVSS scores, vendors and versions are never invented. See NVD for the official record.