CVE-2026-139989
Languagemodels 1.0.0 Jinja2 Template Injection RCE via Config.use_hf_model
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.
INFO
Published Date :
Nov. 30, 2026, 6:26 p.m.
Last Modified :
Nov. 30, 2026, 6:26 p.m.
Remotely Exploit :
No
Source :
VulnCheck
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | 83251b91-4cc7-4094-a5c7-464a1b83ea10 | ||||
| CVSS 3.1 | HIGH | MITRE-CVE | ||||
| CVSS 4.0 | HIGH | 83251b91-4cc7-4094-a5c7-464a1b83ea10 |
Solution
- Update Languagemodels to the latest version.
- Review model repository configurations for malicious templates.
- Sanitize or validate user-supplied template content.
- Remove unsandboxed Jinja2 environments if possible.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-139989 vulnerability anywhere in the article.