HIGH · CVSS 7.8 Published: 2026-11-30

CVE-2026-139989 — Technical Security Advisory & CVSS Profile

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.

Technical Metadata

IdentifierCVE-2026-139989
Base Severity / ScoreHIGH (7.8 / 10.0)
CVSS VectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness ClassificationCWE-1336
Archive CategoriesHIGH Advisories · 2026 Index

Operational Mitigation Guidance

Prioritize remediation in the next maintenance cycle. Validate affected dependency versions in SBOM manifests and review inbound access controls. For architectural isolation principles, review per-process namespace isolation.

Upstream References

Related Security Advisories