CVE-2026-7669
Description
A vulnerability was detected in sgl-project SGLang up to 0.5.9. Impacted is the function get_tokenizer of the file python/sglang/srt/utils/hf_transformers_utils.py of the component HuggingFace Transformer Handler. The manipulation of the argument trust_remote_code with the input False as part of Boolean results in code injection. The attack can be executed remotely. A high complexity level is associated with this attack. The exploitability is considered difficult. In get_tokenizer(), when the caller passes trust_remote_code=False and HuggingFace transformers v5 returns a TokenizersBackend instance (the generic fallback for tokenizer classes not in the registry), SGLang silently re-invokes AutoTokenizer.from_pretrained with trust_remote_code=True, overriding the caller's explicit security setting. A model repository containing a malicious tokenizer.py referenced via auto_map in tokenizer_config.json will execute arbitrary Python in the SGLang process during this second call. No log line or warning is emitted. The override affects all current SGLang versions because transformers==5.3.0 is pinned in pyproject.toml. Both tokenizer_mode="auto" and tokenizer_mode="slow" are affected. The exploit is now public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Weakness
- CWE-94: Improper Control of Generation of Code
- CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-05-05 |
Timeline
- 2026-05-02Published by the CNA22:00 UTC
- 2026-05-03GitHub advisory published (GHSA-6m5f-673f-5vh7)1 day after publication
- 2026-05-05CISA SSVC decision recorded3 days after publication
Exploit and advisory records
GitHub advisory GHSA-6m5f-673f-5vh7, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI sglang | through 0.5.9 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| sgl-project sglang | 0.5.0no fix listed0.5.1no fix listed0.5.2no fix listed0.5.3no fix listed0.5.4no fix listed(+5 more) | not listednot listednot listednot listednot listed |
References
- https://github.com/gouldnicholas/CVE-2026-7669-PoC
- https://vuldb.com/vuln/360817
- https://vuldb.com/submit/799263
- https://vuldb.com/vuln/360817/cti
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-7669'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-7669'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-7669'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-7669'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).