Languagemodels 1.0.0 contains a template injection vulnerability in Config.use_hf_model that allows remote attackers
Source GCVE Database
Not known to be exploited · CVSS 8.5 High : upgrade to 1.0.1 soon.
Data as of 1 Dec 2026, 01:04 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 8.5 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 7.8 |
- Patch
- Available – fixed in 1.0.1
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 30 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.
What to do
Upgrade languagemodels to 1.0.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| jncratonlanguagemodels | Affected
| Fixed in
|
PyPIlanguagemodelspkg:pypi/languagemodelsOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, avoid using untrusted Hugging Face model repositories or unverified chat_template files in tokenizer_config.json to mitigate risk.
Description
Languagemodels version 1.0.0 has a template injection vulnerability in the Config.use_hf_model feature. This flaw allows remote attackers to execute arbitrary code by supplying a malicious Hugging Face model chat_template. The vulnerability arises because the chat_template in tokenizer_config.json is processed in an unsandboxed jinja2 environment, enabling attackers who control a model repository to reach the os module and run commands with the victim process's privileges.
References
- nvd.nist.gov/vuln/detail/CVE-2026-139989 (opens in a new tab)
- github.com/jncraton/languagemodels/issues/43 (opens in a new tab)
- github.com/jncraton/languagemodels/pull/44 (opens in a new tab)
- github.com/jncraton/languagemodels/commit/48f4257a0d20a82075d2847a51036a3c8a2a0a13 (opens in a new tab)
- github.com/jncraton/languagemodels/blob/a875090e2b74257e44bd0a534f42704a1014d61c/languagemodels/config.py (opens in a new tab)
- pypi.org/project/languagemodels/1.0.1 (opens in a new tab)
- vulncheck.com/advisories/languagemodels-1.0.0-jinja2-template-injection-rce-via-config-use-hf-model (opens in a new tab)