CVE-2026-139989

7.8High

Published Nov 30, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.8CVSS

High

0CVSS v3.110

Attack vector
Local
Complexity
Low
Privileges
None
User action
Required
Impact
Full C/I/A compromise
Weakness
CWE-1336

What an attacker gets

Attackers can execute arbitrary code with the privileges of the process using the library. This requires a user to load a malicious Hugging Face model containing a crafted chat_template.

Root cause

The library uses an unsandboxed Jinja2 environment to process chat templates, allowing access to the os module.

Affected versions

Languagemodels 1.0.0

CVSS v3.1 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Fix & remediation

Upgrade to Languagemodels 1.0.1. If you cannot update, avoid using Config.use_hf_model with untrusted model repositories.

remediation — bash
$ pip install --upgrade languagemodels

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

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

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-139989

More fully triaged vulnerabilities you may want to check next.