cvelo
P2 · HighCVSS 7.8EPSS 0.8%

Languagemodels 1.0.0 Jinja2 Template Injection RCE via Config.use_hf_model

  • CVE-2026-139989
  • GHSA-v286-88f6-fh24
  • EUVD-2026-139658

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.

Text from the CVE.org record.

Recommendation

  • jncraton languagemodels

    • If you run 1.0.xupdate to 1.0.1 or laterPatch update: breaking changes are unlikely

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • jncraton languagemodels

    Affected versionsFixed in
    from 1.0.0 to before 1.0.11.0.1

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.