CVE-2026-139989
published high CVSS 4.0 · 8.5Languagemodels 1.0.0 Jinja2 Template Injection RCE via Config.use_hf_model
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| jncraton | — | languagemodels1.0.0 to < 1.0.1 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.5 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| jncraton | languagemodels | 1.0.0 to < 1.0.1 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine
References
6- 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/
- VulnCheck Advisory: Languagemodels 1.0.0 Jinja2 Template Injection RCE via Config.use_hf_model https://www.vulncheck.com/advisories/languagemodels-1.0.0-jinja2-template-injection-rce-via-config-use-hf-model
Provider assertions
2VulnCheck · cna
Languagemodels 1.0.0 Jinja2 Template Injection RCE via Config.use_hf_model
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 30e17c950ae5d1474fd736d3c2d1c1200a2a1eecea9f45558f23b373e3bc6b93
- Ingested
- 01 Dec 2026, 13:34:21 UTC
- Source record
- Official CVE record