CVE-2026-139989
Languagemodels 1.0.0 Jinja2 Template Injection RCE via Config.use_hf_model
- Severity
- high CVSS 8.5 (v4.0)
- Affects
- languagemodels · jncraton
- Weakness
- CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
- Published
- 30 November 2026 by VulnCheck
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.
Our coverage
We have not written about this one. Know why it matters? Send a tip.