CVE-2026-80047: Mlx lm · Hugging Face Transformers downloads custom generation code before trust consent
Affects mlx-lmSource GCVE Database
Not known to be exploited · CVSS 7.8 High : upgrade to 0.31.3_1 soon.
Data as of 2 Dec 2026, 18:37 UTC
- EPSS
- 0.08% chance of exploitation in 30 days – higher than 0% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.31.3_1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 1 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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 3 Dec 2026.
What to do
Upgrade mlx-lm to 0.31.3_1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewmlx-lmpkg:brew/mlx-lmOther threats | Affected
| Fixed in
|
PyPItransformerspkg:pypi/transformersOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available to address this vulnerability. Users should update Hugging Face Transformers to a fixed version beyond 5.8.1. Until patched, avoid using the GenerativePreTrainedModel.load_custom_generate() function with untrusted sources. Monitor vendor advisories for official fixes and apply them promptly.
Description
A vulnerability in Hugging Face Transformers versions 4.49.0 through 5.8.1 allows remote Python files to be written to local disk without user consent when using the GenerativePreTrainedModel.load_custom_generate() function. The function caches a remote module file before performing the trust check, causing attacker-controlled code to be saved persistently even if the user declines to trust it. Execution of this code is blocked by the trust prompt, but the unauthorized files remain on disk and may cause stale cache collisions in future trusted model loads.
References
- nvd.nist.gov/vuln/detail/CVE-2026-80047 (opens in a new tab)
- github.com/huggingface/transformers (opens in a new tab)
- kb.cert.org/vuls/id/456290 (opens in a new tab)
- kb.cert.org/vuls/id/456290 (opens in a new tab)
- github.com/huggingface/transformers/pull/48620 (opens in a new tab)
- github.com/huggingface/transformers/commit/cbc1651a032b923da7f4b44b3d0e6f68e6ba6b55 (opens in a new tab)