CVE-2026-5760: Vulnerability in Lmsys Sglang

Critical. SGLang's reranking endpoint (/v1/rerank) achieves Remote Code Execution (RCE) when a model file containing a malcious tokenizer.chat_template is loaded, as the Jinja2 chat templates are rendered using an unsandboxed jinja2.Environment().

CWE-94

Exploitation
None confirmed
Severity
9.8 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-94
Published
20 Apr 2026
Last change
17 Jun 2026

Affected products

Affected versions and the first fixed release

  • Lmsys Sglang Before 0.5.11. Fixed in 0.5.11

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related