# CVE-2026-7669: sgl-project SGLang HuggingFace Transformer hf\_transformers\_utils.py get\_tokenizer code injection

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.3
- **CVSS:** 6.3 (v4.0, CNA) `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.42% (percentile 28, 2026-11-26)
- **CWE:** CWE-94, CWE-74
- **Aliases:** GHSA-6m5f-673f-5vh7, PYSEC-2026-3062
- **Published:** 2026-05-02T22:00:19.859Z
- **Modified:** 2026-10-26T20:10:00.160Z

## Who should check

- Projects that depend on PyPI package sglang (\<= 0.5.9)
- Anyone running sgl-project SGLang 0.5.0; 0.5.1; 0.5.2; 0.5.3; 0.5.4; 0.5.5; 0.5.6; 0.5.7; 0.5.8; 0.5.9

## 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.

## Affected and fixed versions

- PyPI `sglang`: affected \<= 0.5.9; fixed no fix listed yet (osv)
- sgl-project SGLang: 0.5.0; 0.5.1; 0.5.2; 0.5.3; 0.5.4; 0.5.5; 0.5.6; 0.5.7; 0.5.8; 0.5.9 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-7669. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-7669.md
Affected: sglang <= 0.5.9
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for sglang (PyPI), sgl-project SGLang: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-7669 being exploited?

There is no confirmed exploitation: CVE-2026-7669 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.42% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-7669?

Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-7669?

sglang \<= 0.5.9.

### Is there a fix for CVE-2026-7669?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-7669?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-7669>
- vendor: <https://github.com/advisories/GHSA-6m5f-673f-5vh7>
- exploit: <https://vuldb.com/vuln/360817>
- exploit: <https://github.com/gouldnicholas/CVE-2026-7669-PoC>
- other: <https://vuldb.com/vuln/360817/cti>
- other: <https://vuldb.com/submit/799263>
- other: <https://github.com/sgl-project/sglang>
- other: <https://pypi.org/project/sglang>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-7669>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-6m5f-673f-5vh7> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-3062> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-7669> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-7669>
