CVE-2026-139989
High 7.8 P4 · Monitor (21/100)Languagemodels 1.0.0 contains a template injection vulnerability in Config.use_hf_model that allows remote attackers to execute code by sup…
Confirmed facts from the sources
- CVSS
- 7.8 (High) · CVSS 3.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Scored by disclosure@vulncheck.com - Exploitation confirmed
- Not in the CISA KEV catalog
- Exploitation estimated (EPSS)
- Not published by the sources
- Public exploit
- No reference to a public exploit.
- Fix
- No fix known
- Monitored technologies
- AI supply chain
Description (source)
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 and versions
| Vendor / product | Affected versions | Fixed in | Source |
|---|---|---|---|
| pip: languagemodels | >= 1.0.0, < 1.0.1 | — | nvd |
Versions as published. “Fixed in” only where a source names the version explicitly.
Recommended mitigation
The sources name no fix or mitigation yet.
In general: check your versions, update to a fixed version, limit exposure until then and follow the vendor guidance.
AI interpretation
No AI interpretation yet – it is created for urgent advisories of monitored technologies. The facts above apply regardless.
Why this priority?: P4 · Monitor (21/100)
- No EPSS score yet (+0)
- Technical severity: CVSS 7.8 (HIGH) – on its own not a reason for top priority (+12)
- Linked to a monitored technology only by its description (+4)
- No fix known – mitigations needed (+5)
Priority is a general assessment from CVSS, KEV, EPSS, exploits, relevance and fix availability. Whether a specific environment is affected depends on its versions, configuration and exposure.
Original advisories and links
- Advisory https://nvd.nist.gov/vuln/detail/CVE-2026-139989 · nvd
- Reference https://github.com/jncraton/languagemodels/blob/a875090e2b74257e44bd0a534f42704a1014d61c/l… · disclosure@vulncheck.com
- Reference https://github.com/jncraton/languagemodels/commit/48f4257a0d20a82075d2847a51036a3c8a2a0a13 · disclosure@vulncheck.com
- Reference https://github.com/jncraton/languagemodels/issues/43 · disclosure@vulncheck.com
- Reference https://github.com/jncraton/languagemodels/pull/44 · disclosure@vulncheck.com
- Reference https://pypi.org/project/languagemodels/1.0.1/ · disclosure@vulncheck.com
- Reference https://www.vulncheck.com/advisories/languagemodels-1.0.0-jinja2-template-injection-rce-vi… · disclosure@vulncheck.com