CVE-2026-140260
SGLang NGRAM Speculative Decoding ngram_worker.py NGRAMWorker behavioral discrepancy
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.
Fixes and workarounds
Fix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: CNA: VulDBAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| SGLang n/a |
0.5.0 (affected) 0.5.1 (affected) 0.5.2 (affected) 0.5.3 (affected) 0.5.4 (affected) 0.5.5 (affected) 0.5.6 (affected) 0.5.7 (affected) 0.5.8 (affected) 0.5.9 (affected) 0.5.10 (affected) 0.5.11 (affected) 0.5.12 (affected) 0.5.13 (affected) 0.5.14 (affected) 0.5.15 (affected) 0.5.16 (affected) 0.5.17 (affected) 0.5.18 (affected) 0.5.19 (affected) 0.5.20 (affected) 0.5.21 (affected) 0.5.22 (affected) 0.5.23 (affected) |
CNA: VulDB |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 4.0 / 5.3 medium |
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P | CNA: VulDB |
| 3.1 / 4.3 medium |
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:C | CNA: VulDB |
| 3.0 / 4.3 medium |
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:C | CNA: VulDB |
| 2.0 / 4.0 medium |
AV:N/AC:L/Au:S/C:P/I:N/A:N/E:POC/RL:ND/RC:C | CNA: VulDB |
| 4.0 / 2.1 low |
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | NVD: [email protected] |
| 3.1 / 4.3 medium |
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N | NVD: [email protected] |
| 2.0 / 4.0 medium |
AV:N/AC:L/Au:S/C:P/I:N/A:N | NVD: [email protected] |
Exploit evidence
- https://github.com/sgl-project/sglang/issues/49626
exploit · CNA: VulDB
References
- https://vuldb.com/vuln/446853CNA: VulDB · vdb-entry, technical-description
- https://vuldb.com/vuln/446853/ctiCNA: VulDB · signature, permissions-required
- https://vuldb.com/cve/CVE-2026-140260CNA: VulDB · third-party-advisory
- https://vuldb.com/submit/1088742CNA: VulDB · third-party-advisory
- https://github.com/sgl-project/sglang/issues/49626CNA: VulDB · exploit, issue-tracking
- https://github.com/sgl-project/sglang/pull/49893CNA: VulDB · issue-tracking, patch
- https://github.com/sgl-project/sglang/issues/49626[email protected]
- https://github.com/sgl-project/sglang/pull/49893[email protected]
- https://vuldb.com/cve/CVE-2026-140260[email protected]
- https://vuldb.com/submit/1088742[email protected]
- https://vuldb.com/vuln/446853[email protected]
- https://vuldb.com/vuln/446853/cti[email protected]
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.