CVE-2026-139989
JSON

8.5high

Languagemodels 1.0.0 Jinja2 Template Injection RCE via Config.use_hf_model

Severity
8.5high CVSS:4.0 by VulnCheck
Exploit likelihood
0.48% (higher than 43% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

Description

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

Product or packageVersionsReported by
jncraton languagemodelsfrom 1.0.0 before 1.0.1CVE List

All scores

VulnCheck8.5high CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
VulnCheck7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-1336

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-139989 changed 2026-12-01CVE Terms of Use
NVDCVE-2026-139989 changed 2026-12-01Public domain