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
| Identifier | CVE-2026-139989 |
|---|---|
| Base Severity / Score | HIGH (7.8 / 10.0) |
| CVSS Vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Weakness Classification | CWE-1336 |
| Archive Categories | HIGH 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
- https://github.com/jncraton/languagemodels/blob/a875090e2b74257e44bd0a534f42704a1014d61c/languagemodels/config.py#L366-L380
- https://github.com/jncraton/languagemodels/commit/48f4257a0d20a82075d2847a51036a3c8a2a0a13
- https://github.com/jncraton/languagemodels/issues/43
- https://github.com/jncraton/languagemodels/pull/44
- https://pypi.org/project/languagemodels/1.0.1/
- https://www.vulncheck.com/advisories/languagemodels-1.0.0-jinja2-template-injection-rce-via-config-use-hf-model
Related Security Advisories
CVE-2026-139988 MEDIUM 5.4
CVE-2026-139990 HIGH 7.5
CVE-2026-125628 HIGH 7.5
CVE-2026-140033 HIGH 8.4
CVE-2026-125019 HIGH 8.6
CVE-2026-125083 HIGH 7.6
CVE-2026-125088 HIGH 8.6