Behavioral discrepancy in SGLang NGRAM speculative decoding worker
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-203.
Summary
SGLang up to 0.5.23 contains a flaw in the NGRAMWorker function of the NGRAM speculative decoding component. Manipulating it leads to an observable behavioral discrepancy (CWE-205). A remote attacker with low privileges can trigger it. A public exploit is available.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
Description from the CNA
A vulnerability was identified in SGLang up to 0.5.23. Affected is the function NGRAMWorker of the file python/sglang/srt/speculative/ngram_worker.py of the component NGRAM Speculative Decoding. Such manipulation leads to observable behavioral discrepancy. The attack can be launched remotely. The exploit is publicly available and might be used. The pull request to fix this issue awaits acceptance.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | 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; 0.5.10; 0.5.11; 0.5.12; 0.5.13; 0.5.14; 0.5.15; 0.5.16; 0.5.17; 0.5.18; 0.5.19; 0.5.20; 0.5.21; 0.5.22; 0.5.23 | — | No fix listed | CNA |
- SGLang Vendor— Affected 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; 0.5.10; 0.5.11; 0.5.12; 0.5.13; 0.5.14; 0.5.15; 0.5.16; 0.5.17; 0.5.18; 0.5.19; 0.5.20; 0.5.21; 0.5.22; 0.5.23 Fixed in — No fix listed CNA
CPE names CNA · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:sglang:sglang:*:*:*:*:*:*:*:* | — | — | — |
- cpe:2.3:a:sglang:sglang:*:*:*:*:*:*:*:* Versions — — ·—
Remediation
The sources list no fixed version for SGLang. A pull request to fix this issue awaits acceptance.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
Timeline
- 2026-12-01 Threatist record created from CVE-2026-140260
- 2026-12-01 Alias added: GHSA-p8wj-937f-6rhx
References
Sources
- CVE-2026-140260 · CVE Program
- CVE-2026-140260 · NVD
- GHSA-p8wj-937f-6rhx · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences