{"id":264,"date":"2026-10-29T07:28:18","date_gmt":"2026-10-29T07:28:18","guid":{"rendered":"https:\/\/bugskan.com\/?p=264"},"modified":"2026-10-29T07:28:19","modified_gmt":"2026-10-29T07:28:19","slug":"transformers-chat-template-names-could-escape-the-intended-save-directory","status":"publish","type":"post","link":"https:\/\/bugskan.com\/index.php\/2026\/10\/29\/transformers-chat-template-names-could-escape-the-intended-save-directory\/","title":{"rendered":"Transformers chat-template names could escape the intended save directory"},"content":{"rendered":"<p>A Transformers advisory describes arbitrary file writes through chat-template dictionary keys used as filenames. A malicious repository could supply crafted tokenizer configuration that escaped the intended directory when the tokenizer or processor was saved.<\/p>\n<p>The affected behavior occurs in save_pretrained paths, rather than proving that merely viewing a model page executes code. Several processor families inherit the relevant code, but the common library flaw is the actionable component.<\/p>\n<p>The advisory lists versions below 5.10.0 as affected and 5.10.0 as fixed. Use a maintained release and isolate workflows that download and save untrusted model artifacts, especially where other files or credentials are writable.<\/p>\n<p><a href=\"https:\/\/github.com\/advisories\/GHSA-xrqw-3rrv-vx5w\">Read the original source<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE-2026-9856 involved path traversal when saving tokenizers or processors loaded from crafted repositories.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"bugskan_incident_id":"inc_3132a5974122fa","bugskan_event_type":"vulnerability","bugskan_response":"REVIEW","bugskan_technical_severity":"","bugskan_technical_severity_source":"","bugskan_evidence_quality":"high","bugskan_affected_scope":"Affected tokenizer and processor save_pretrained paths below Transformers 5.10.0.","bugskan_recommended_next_step":"Update Transformers and restrict filesystem access during untrusted model processing.","bugskan_who_should_check":"","bugskan_material_updated_at":"2026-08-02T00:00:00Z","bugskan_reviewer_name":"","bugskan_reviewed_at":"","bugskan_legacy_state":"mapped","bugskan_featured":false,"bugskan_sample":false,"footnotes":""},"categories":[1],"tags":[],"bugskan_format":[2],"bugskan_technology":[57],"class_list":["post-264","post","type-post","status-publish","format-standard","hentry","category-uncategorized","bugskan_format-security-brief","bugskan_technology-hugging-face-transformers"],"_links":{"self":[{"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/posts\/264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/comments?post=264"}],"version-history":[{"count":1,"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/posts\/264\/revisions"}],"predecessor-version":[{"id":400,"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/posts\/264\/revisions\/400"}],"wp:attachment":[{"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/media?parent=264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/categories?post=264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/tags?post=264"},{"taxonomy":"bugskan_format","embeddable":true,"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/bugskan_format?post=264"},{"taxonomy":"bugskan_technology","embeddable":true,"href":"https:\/\/bugskan.com\/index.php\/wp-json\/wp\/v2\/bugskan_technology?post=264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}