CVE-2026-139989: jncraton languagemodels · Template Injection
Affects jncraton languagemodelsSource CVE Database V5
Not known to be exploited · CVSS 8.5 High : upgrade to 1.0.1 soon.
Data as of 30 Nov 2026, 19:00 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 jncraton 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
Upgrade to languagemodels version 1.0.1 or later, where this vulnerability is fixed. There are no vendor advisories indicating alternative mitigations or that no action is required. Applying the official fix is the recommended remediation.
Description
Languagemodels version 1.0.0 contains a template injection vulnerability in the Config.use_hf_model feature. This flaw allows remote attackers who control a Hugging Face model repository to execute arbitrary code by crafting a malicious chat_template in tokenizer_config.json. The vulnerability arises from the use of an unsandboxed jinja2 environment that can access the os module, enabling command execution with the privileges of the victim process. The issue is fixed in version 1.0.1.
References
- 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)
- pypi.org/project/languagemodels/1.0.1/ (opens in a new tab)
- github.com/jncraton/languagemodels/blob/a875090e2b74257e44bd0a534f42704a1014d61c/languagemodels/config.py (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)