Home / jncraton / languagemodels / CVE-2026-139989
CVE-2026-139989: is it exploited, and which versions of jncraton languagemodels are affected and fixed?
CVE-2026-139989 is a template injection vulnerability in jncraton languagemodels. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: languagemodels from 1.0.0 before 1.0.1 (CVE record by VulnCheck). Fixed in 1.0.1 (CVE record by VulnCheck). Severity: High (8.5, CVSS 4.0, from VulnCheck).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record December 1, 2026, 13:39 UTC and NVD December 1, 2026, 15:09 UTC.
What is 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.
From the CVE record by VulnCheck, last updated December 1, 2026, 13:20 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| jncraton | languagemodels | from 1.0.0 before 1.0.1 | 1.0.1 |
As the CVE record by VulnCheck states it, last updated December 1, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-139989?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.5 | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | VulnCheck |
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | VulnCheck |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-139989 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, December 1, 2026)
- EPSS
- 0.85% probability of exploitation activity in the next 30 days, percentile 59.4 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine
Where are the vendor advisories and references?
- https://github.com/jncraton/languagemodels/issues/43 issue-tracking
- https://github.com/jncraton/languagemodels/pull/44 issue-tracking, patch
- https://github.com/jncraton/languagemodels/commit/48f4257a0d20a82075d2847a51036a3c8a2a0a13 patch
- https://pypi.org/project/languagemodels/1.0.1/ product
- https://github.com/jncraton/languagemodels/blob/a875090e2b74257e44bd0a534f42704a1014d61c/languagemodels/config.py#L366-L380 technical-description
- VulnCheck Advisory: Languagemodels 1.0.0 Jinja2 Template Injection RCE via Config.use_hf_model third-party-advisory
Who found and reported it?
- Dilanka Kaushal Hewage (r3vpwnx) (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- November 30, 2026
- Published
- November 30, 2026, 18:26 UTC
- CVE record updated
- December 1, 2026, 13:20 UTC by VulnCheck
- NVD
- Received, last modified December 1, 2026, 14:18 UTC
- Last checked
- CVE list December 1, 2026, 13:39 UTC; NVD December 1, 2026, 15:09 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Questions about CVE-2026-139989
Is CVE-2026-139989 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 0.85% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of jncraton languagemodels are affected by CVE-2026-139989?
languagemodels from 1.0.0 before 1.0.1, per the CVE record by VulnCheck. The tables above give every range the sources list.
Which version fixes CVE-2026-139989?
1.0.1, per the CVE record by VulnCheck. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-139989?
High (8.5, CVSS 4.0, from VulnCheck). The severity table above shows each score with its source.
Where is the official record of CVE-2026-139989?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.