{"data":{"id":"43c2e939-e377-4c99-957c-4713e8cb5cbe","title":"CVE-2026-9856: A vulnerability in huggingface/transformers versions <=5.8.0.dev0 allows an attacker to perform arbitrary file writes…","summary":"CVE-2026-9856 affects huggingface/transformers versions <=5.8.0.dev0 and allows arbitrary file writes via path traversal. Keys from the chat_template dictionary in the save_pretrained() methods of PreTrainedTokenizerBase and ProcessorMixin are used directly as filenames without validation, so a malicious Hub repository with a crafted tokenizer_config.json can write attacker-controlled content outside the save directory when a victim saves the tokenizer or processor. Multiple ProcessorMixin subclasses, including Idefics, Florence, Gemma, Phi, and Qwen-VL, are affected.","solution":"N/A -- no mitigation discussed in source.","labels":["security"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-9856","publishedAt":"2026-08-02T16:16:25.413Z","cveId":"CVE-2026-9856","cweIds":["CWE-22"],"cvssScore":null,"cvssSeverity":null,"severity":"high","attackType":["supply_chain"],"issueType":"vulnerability","affectedPackages":["transformers@< 5.10.0 (fixed: 5.10.0)"],"affectedPackageNames":["transformers"],"affectedPackageRefs":["pypi:transformers"],"affectedVendors":["HuggingFace"],"affectedVendorsRaw":["HuggingFace","transformers","Hugging Face Hub","Idefics","Florence","Gemma","Phi","Qwen-VL"],"classifierModel":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2","headline":"huggingface/transformers path traversal in save_pretrained via chat_template","headlinePromptVersion":"h1","cvssVector":null,"attackVector":null,"attackComplexity":null,"privilegesRequired":null,"userInteraction":null,"exploitMaturity":"unknown","epssScore":0.0046,"epssCheckedAt":"2026-11-04T06:10:14.410Z","kevDateAdded":null,"advisoryAliases":["GHSA-xrqw-3rrv-vx5w"],"affectedPackagesSource":"ghsa","affectedPackagesCheckedAt":"2026-10-10T03:46:04.278Z","patchAvailable":true,"disclosureDate":"2026-08-02T16:16:25.413Z","fixReleasedAt":"2026-06-03T15:16:02.505Z","daysToFix":-60,"fixCheckedAt":"2026-10-29T21:32:27.637Z","capecIds":["CAPEC-126"],"crossRefCount":0,"attackSophistication":"moderate","impactType":["integrity","availability"],"aiComponentTargeted":"framework","llmSpecific":false,"classifierConfidence":0.95,"researchCategory":null,"atlasIds":["AML.T0010"],"fixes":[{"ecosystem":"pypi","name":"transformers","fixedVersion":"5.10.0","matchedVersion":"5.10.0","fixReleasedAt":"2026-06-03T15:16:02.505Z","daysToFix":-60,"match":"ecosystem","source":"tracked","status":"found","checkedAt":"2026-10-29T21:32:27.490Z"}]}}