Vulnerability record
CVE-2026-139989
The short answer
CVE-2026-139989 affects jncraton languagemodels and is rated high (CVSS 7.8). It is not in CISA's Known Exploited Vulnerabilities catalog.
What it is
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.
Weakness: CWE-1336.
Severity
7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Exploited (CISA KEV)
Not listed
CISA lists confirmed exploitation only
EPSS, next 30 days
No score
FIRST scores CVEs within a day of publication
How it can be exploited
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Affected products
languagemodels. NVD's record lists the exact affected versions.
References
- github.com/jncraton/languagemodels/blob/a875090e2b74257e44bd0a534f42704a1014d61c/languagemodels/config.py#L366-L380
- github.com/jncraton/languagemodels/commit/48f4257a0d20a82075d2847a51036a3c8a2a0a13
- github.com/jncraton/languagemodels/issues/43
- github.com/jncraton/languagemodels/pull/44
- pypi.org/project/languagemodels/1.0.1/
- www.vulncheck.com/advisories/languagemodels-1.0.0-jinja2-template-injection-rce-via-config-use-hf-model
Questions
Is CVE-2026-139989 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog as of 2026-11-30.
How do I fix CVE-2026-139989?
Follow the vendor advisory in the references below. NVD lists the affected versions under its configurations.
From NVD, CISA KEV, FIRST EPSS and OSV.dev, checked . Status on NVD: Received. The description is NVD's text, quoted as published.
Related
Newly exploited vulnerabilities, every Monday
What CISA added to its KEV catalog that week, and the Critical CVEs most likely to be exploited. One email a week, one click to stop.
Know the day a CVE lands in your code
Connect a GitHub repository and ZeusQA checks its dependencies daily, briefs each advisory and opens the fix. Three test runs free, no card.