Languagemodels 1.0.0 contains a template injection vulnerability in Config.usehfmodel that allows remote attackers to execute code by…
CVE-2026-139989
Languagemodels 1.0.0 contains a template injection vulnerability in Config.usehfmodel that allows remote attackers to execute code by supplying a malicious Hugging Face model chattemplate. Attackers who control a model repository can craft a chattemplate in tokenizerconfig.json that reaches the os module through the unsandboxed jinja2 environment, running commands with the victim process privileges.
Assessment
- CVSS
- 8.5 (v4.0)
- Severity
- High
- EPSS
- 0% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 30 November 2026
- Last updated
- 30 November 2026
- Affected
- jncraton · languagemodels
- Weakness
- CWE-1336
- Assigner
- disclosure@vulncheck.com
CVSS vectorCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
At the source
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
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-139989