CVE-2026-139989
CVE-2026-139989 — Languagemodels 1.0.0 Jinja2 Template Injection RCE via Config.use_hf_model
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.
Published Updated Sources: NVD, jncraton (CNA), GitHub
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Reported
not confirmed by CISA
EPSS
n/a
FIRST has not published a score
CVSS base
7.8
high · 2 sources
Remediation
The vendor's own words where we have them.
Upgrade Languagemodels to a fixed release. Apply vendor patches per advisory and restrict external exposure of the affected component until patched.
First 24 hours
Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.
- Identify exposed assets running affected vendor/product/version combinations.
- Prioritize based on EPSS, PoC availability, and external exposure.
- Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.
Affected scope
Vendor, product and version as the advisories word them.
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Jncraton | languagemodels | 1.0.0 to < 1.0.1 | Vulnerable |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Availability
High
Confidentiality
High
Integrity
High
Scope
Unchanged
Attack Complexity
Low
Attack Vector
Local
Privileges Req
None
User Interaction
Required
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 7.8 | CVSS 3.1 | high | 1.8 | 5.9 | NVD, jncraton (CNA) |
| 8.5 | CVSS 4.0 | high | n/a | n/a | jncraton (CNA) |
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness & attack patterns
- CWE-1336
Inferred from the weakness class — not observed against this CVE.
Public exploit
Capability, not use: code existing is a different claim from anyone running it.
PoC repos
2
1 of the 2 sampled are weaponized
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Monitor for scanner or exploit-pattern traffic after 2 public PoC repositories were reported.
Timeline
What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.
- 2026
Added · CVSS 3.1 7.8 (AV:L)
Nov 30, 2026 · NVD
Initial · CVE published
Nov 30, 2026 · NVD
References
6 on the record
- github.com/jncraton/languagemodels/blob/a875090e2b74257e44bd0a534f42704a1014d61c/languagemodels/config.py#L366-L380
Exploit, Third Party Advisory
- github.com/jncraton/languagemodels/commit/48f4257a0d20a82075d2847a51036a3c8a2a0a13
Exploit, Third Party Advisory
- github.com/jncraton/languagemodels/issues/43
Exploit, Third Party Advisory
- github.com/jncraton/languagemodels/pull/44
Exploit, Third Party Advisory
- pypi.org/project/languagemodels/1.0.1/
Vendor Advisory
- www.vulncheck.com/advisories/languagemodels-1.0.0-jinja2-template-injection-rce-via-config-use-hf-model
Vendor Advisory
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-75650 Adobe Commerce | Improper Neutralization of Special Elements Used in a Template Engine (CWE-1336)CVSS 10.0 · CISA KEV
- CVE-2024-4040 CrushFTP VFS Sandbox Escape VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2024-23692 Rejetto HTTP File Server Improper Neutralization of Special Elements Used in a Template Engine VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2026-138223 David-Crty Databasement Toast Notification Helper Toast.php toast special elements in template engineCVSS 10.0
- CVE-2026-90970 Improper Neutralization of Special Elements Used in a Template Engine in GitLab AI GatewayCVSS 9.9
- CVE-2026-1868 Improper Neutralization of Special Elements Used in a Template Engine in GitLab AI GatewayCVSS 9.9
Elsewhere on this site
- Jncratonevery CVE for this vendor
- languagemodelsevery page on this product
- Remote Code Execsame class
- CWE-1336other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1
What should defenders know first?
CVE-2026-139989 is Languagemodels 1.0.0 Jinja2 Template Injection RCE via Config.use_hf_model, a high vulnerability affecting Languagemodels from Jncraton. The current evidence does not list it in CISA KEV, and the exploit status is: Exploitation is reported, but no independent confirmation is available in the sources we have. Public exploit evidence is: 2 public PoC repositories reported; 1 marked weaponized in current dataset. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS 7.8 describes technical severity, while EPSS 0% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.