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.

Project Subscriptions

No data.

Advisories

No advisories yet.

Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Mon, 30 Nov 2026 18:45:00 +0000

Type Values Removed Values Added
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.
Title Languagemodels 1.0.0 Jinja2 Template Injection RCE via Config.use_hf_model
Weaknesses CWE-1336
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': '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'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-30T18:26:34.358Z

Reserved: 2026-11-30T17:28:45.343Z

Link: CVE-2026-139989

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-30T19:17:58.953

Modified: 2026-11-30T19:17:58.953

Link: CVE-2026-139989

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses