CVE-2026-139989

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.
Configurations

No configuration.

History

01 Dec 2026, 14:18

Type Values Removed Values Added
References () https://github.com/jncraton/languagemodels/issues/43 - () https://github.com/jncraton/languagemodels/issues/43 -

30 Nov 2026, 19:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-11-30 19:17

Updated : 2026-12-01 14:18


NVD link : CVE-2026-139989

Mitre link : CVE-2026-139989

CVE.ORG link : CVE-2026-139989


JSON object : View

Products Affected

No product.

CWE
CWE-1336

Improper Neutralization of Special Elements Used in a Template Engine