SGLang
CVE-2026-5760
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().
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- 8f3097e
Mitigation
The record names no fix. Check the vendor advisory below.
References
Timeline
Days relative to CVE publicationPublic PoC known, its date not yet looked up; not in CISA KEV.
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Stuub/SGLang-0.5.9-RCE | 2 Apr 2026 −18 d | 5 | PoC older repo: PoC date unknown, not used for the first PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /v1/rerank
- Body markers
The answer can only be "yes" or "no".lipsum.__globals__["os"].popen- PoC User-Agent
evidence_placeholder- Seen in
- 1 repo: Stuub/SGLang-0.5.9-RCE
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/v1/rerank(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-5760 SGLang SGLang exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/v1/rerank"; http.request_body; content:"The answer can only be |22|yes|22| or |22|no|22|."; http.request_body; content:"lipsum.__globals__[|22|os|22|].popen"; reference:url,poc.griffinguard.io/cve/CVE-2026-5760; classtype:web-application-attack; sid:9456065; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: SGLang SGLang exploit attempt (CVE-2026-5760)
id: gg-pocmon-cve-2026-5760-9456065
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-5760. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-5760
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/v1/rerank'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.5760