{"cve":"CVE-2026-7669","nvd":{"published":"2026-05-02T22:16:24.080","modified":"2026-10-26T20:10:00.160","status":"Deferred","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.","cvss_v4":{"vector":"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","score":6.3},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","score":5.6},"cwes":["CWE-74","CWE-94"],"references":["https://github.com/gouldnicholas/CVE-2026-7669-PoC","https://vuldb.com/submit/799263","https://vuldb.com/vuln/360817","https://vuldb.com/vuln/360817/cti"],"products":[],"source":"nvd","synced_at":"2026-10-26T20:34:58.897451322+00:00"},"epss":{"cve":"CVE-2026-7669","score":0.00368,"percentile":0.30474,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-6m5f-673f-5vh7","url":"https://osv.dev/vulnerability/GHSA-6m5f-673f-5vh7","summary":"SGLang has an Improper Input Validation/Injection Issue","modified":"2026-07-13T16:43:02.235489118Z","packages":[{"ecosystem":"PyPI","name":"sglang","purl":"pkg:pypi/sglang","ranges":["<=0.5.9"],"fixed":[]}]},{"id":"PYSEC-2026-3062","url":"https://osv.dev/vulnerability/PYSEC-2026-3062","summary":"SGLang has an Improper Input Validation/Injection Issue","modified":"2026-07-13T16:32:48.412027207Z","packages":[{"ecosystem":"PyPI","name":"sglang","purl":"pkg:pypi/sglang","ranges":["<=0.5.9"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}