Skip to content
OpenAdvisories
High · 7.8 CVE-2026-139989 EUVD-2026-139658GHSA-v286-88f6-fh24

Languagemodels 1.0.0 Jinja2 Template Injection RCE via Config.use_hf_model

Published Nov 30, 2026 · Assigned by VulnCheck

Description

Languagemodels 1.0.0 contains a template injection vulnerability in Config.use_hf_model that allows remote attackers to execute code by supplying a malicious Hugging Face model chat_template. Attackers who control a model repository can craft a chat_template in tokenizer_config.json that reaches the os module through the unsandboxed jinja2 environment, running commands with the victim process privileges.

Affected products

VendorProductAffectedFixed
jncraton languagemodels 1.0.0 – < 1.0.1 1.0.1

References