# CVE-2026-140260: SGLang NGRAM Speculative Decoding ngram_worker.py NGRAMWorker behavioral discrepancy

Status: published. Published: 2026-12-01. Updated: 2026-12-01.

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.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: VulDB) — https://github.com/sgl-project/sglang/pull/49893

## Affected products and versions

- n/a / SGLang: 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). Source: CNA: VulDB

## Severity and prioritization

- CVSS 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; source: CNA: VulDB

- CVSS 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; source: CNA: VulDB

- CVSS 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; source: CNA: VulDB

- CVSS 2.0: 4 (medium); AV:N/AC:L/Au:S/C:P/I:N/A:N/E:POC/RL:ND/RC:C; source: CNA: VulDB

- CVSS 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; source: NVD: cna@vuldb.com

- CVSS 3.1: 4.3 (medium); CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N; source: NVD: cna@vuldb.com

- CVSS 2.0: 4 (medium); AV:N/AC:L/Au:S/C:P/I:N/A:N; source: NVD: cna@vuldb.com

- CISA KEV: No listing in collected sources

- EPSS: 0.36% as of 2026-12-01; percentile 31.40%

- SSVC: exploitation poc; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-205, CWE-203

## Exploit evidence

- exploit: https://github.com/sgl-project/sglang/issues/49626 (CNA: VulDB)

## References

- https://vuldb.com/vuln/446853 (CNA: VulDB; vdb-entry, technical-description)

- https://vuldb.com/vuln/446853/cti (CNA: VulDB; signature, permissions-required)

- https://vuldb.com/cve/CVE-2026-140260 (CNA: VulDB; third-party-advisory)

- https://vuldb.com/submit/1088742 (CNA: VulDB; third-party-advisory)

- https://github.com/sgl-project/sglang/issues/49626 (CNA: VulDB; exploit, issue-tracking)

- https://github.com/sgl-project/sglang/pull/49893 (CNA: VulDB; issue-tracking, patch)

- https://github.com/sgl-project/sglang/issues/49626 (cna@vuldb.com)

- https://github.com/sgl-project/sglang/pull/49893 (cna@vuldb.com)

- https://vuldb.com/cve/CVE-2026-140260 (cna@vuldb.com)

- https://vuldb.com/submit/1088742 (cna@vuldb.com)

- https://vuldb.com/vuln/446853 (cna@vuldb.com)

- https://vuldb.com/vuln/446853/cti (cna@vuldb.com)

## Provenance

- CNA: VulDB: https://www.cve.org/CVERecord?id=CVE-2026-140260; retrieved 2026-12-01; source updated 2026-12-01

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-140260; retrieved 2026-12-01; source updated 2026-12-01

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-140260; retrieved 2026-12-01; source updated Not reported

Revision: 26b036132efe28053765787b4554f1edee5505ac9f2cb00c76bda8cfdac86686

Canonical: https://y2.dev/cve/CVE-2026-140260

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.