PyPI
CVE-2026-139989
Languagemodels 1.0.0 Jinja2 Template Injection RCE via Config.use_hf_model
- Severity
- High 8.5
- Published
- 30 Nov 2026
- Last changed
- 30 Nov 2026
- Added to UpHeron
- 30 Nov 2026
- Fixed in
- 1.0.1
- Attack
- Needs local access · No login needed · Needs someone to view a page or file
- Attacker can
- Read data · Change data · Take it down
- CVSS 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- Sources
- CVE Program
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.
Affected software
| Software | Affected versions |
|---|---|
languagemodelsPyPI · osv:PyPI:languagemodels |
|
About languagemodels
- Weekly downloads (PyPI)
- 58PyPI Stats, 30 Nov 2026
This is the only vulnerability in languagemodels in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-139989