Skip to main content
CVE-2026-139989VulnerabilityPublished

Languagemodels 1.0.0 contains a template injection vulnerability in Config.use_hf_model that allows remote attackers

Source GCVE Database

0
Compare
Authoritative record:CVE-2026-139989· High 8.5

Not known to be exploited · CVSS 8.5 High : upgrade to 1.0.1 soon.

Data as of 1 Dec 2026, 01:04 UTC

CVSS 4.0 base score
8.5High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (VulnCheck)CVSS 4.08.5
CNA (VulnCheck)CVSS 3.17.8
Patch
Available – fixed in 1.0.1
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 30 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.

What to do

Upgrade languagemodels to 1.0.1.

Affected software

ProductAffectedFixed in
jncratonlanguagemodelsAffected
  • >=1.0.0 <1.0.1
Fixed in
  • 1.0.1
PyPIlanguagemodelspkg:pypi/languagemodelsOther threatsAffected
  • >=1.0.0 <1.0.1
Fixed in
  • 1.0.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

If you cannot patch yet, avoid using untrusted Hugging Face model repositories or unverified chat_template files in tokenizer_config.json to mitigate risk.

Description

Languagemodels version 1.0.0 has a template injection vulnerability in the Config.use_hf_model feature. This flaw allows remote attackers to execute arbitrary code by supplying a malicious Hugging Face model chat_template. The vulnerability arises because the chat_template in tokenizer_config.json is processed in an unsandboxed jinja2 environment, enabling attackers who control a model repository to reach the os module and run commands with the victim process's privileges.

References

Community reviews

Loading reviews…