CVE-2026-5760 | sglang 0.59 Reranking Endpoint /v1/rerank jinja2.Environment special elements used in a template engine
VulDBArchived Apr 20, 2026✓ Full text saved
A vulnerability classified as critical has been found in sglang 0.59 . This impacts the function jinja2.Environment of the file /v1/rerank of the component Reranking Endpoint . The manipulation leads to improper neutralization of special elements used in a template engine. This vulnerability is documented as CVE-2026-5760 . The attack can be initiated remotely. There is not any exploit available.
Full text archived locally
✦ AI Summary· Claude Sonnet
VDB-358302 · CVE-2026-5760 · GCVE-0-2026-5760
SGLANG 0.59 RERANKING ENDPOINT /V1/RERANK JINJA2.ENVIRONMENT SPECIAL ELEMENTS USED IN A TEMPLATE ENGINE
HISTORYDIFFRELATEJSONXMLCTI
CVSS Meta Temp Score Current Exploit Price (≈) CTI Interest Score
6.1 $0-$5k 2.07+
Summaryinfo
A vulnerability classified as critical was found in sglang 0.59. Affected is the function jinja2.Environment of the file /v1/rerank of the component Reranking Endpoint. The manipulation results in improper neutralization of special elements used in a template engine. This vulnerability is reported as CVE-2026-5760. The attack can be launched remotely. No exploit exists.
Detailsinfo
A vulnerability, which was classified as critical, was found in sglang 0.59. Affected is the function jinja2.Environment of the file /v1/rerank of the component Reranking Endpoint. The manipulation with an unknown input leads to a improper neutralization of special elements used in a template engine vulnerability. CWE is classifying the issue as CWE-1336. The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine. This is going to have an impact on confidentiality, integrity, and availability. CVE summarizes:
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().
The advisory is available at github.com. This vulnerability is traded as CVE-2026-5760 since 04/07/2026. The exploitability is told to be easy. It is possible to launch the attack remotely. Technical details are known, but there is no available exploit. The structure of the vulnerability defines a possible price range of USD $0-$5k at the moment (estimation calculated on 04/20/2026). This vulnerability is assigned to T1221 by the MITRE ATT&CK project.
There is no information about possible countermeasures known. It may be suggested to replace the affected object with an alternative product.
Productinfo
Name
sglang
Version
0.59
CPE 2.3info
🔒
CPE 2.2info
🔒
CVSSv4info
VulDB Vector: 🔒
VulDB Reliability: 🔍
CVSSv3info
VulDB Meta Base Score: 6.3
VulDB Meta Temp Score: 6.1
VulDB Base Score: 6.3
VulDB Temp Score: 6.1
VulDB Vector: 🔒
VulDB Reliability: 🔍
CVSSv2info
Vector Complexity Authentication Confidentiality Integrity Availability
Unlock Unlock Unlock Unlock Unlock Unlock
Unlock Unlock Unlock Unlock Unlock Unlock
Unlock Unlock Unlock Unlock Unlock Unlock
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploitinginfo
Class: Improper neutralization of special elements used in a template engine
CWE: CWE-1336 / CWE-791 / CWE-790
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Status: Not defined
Price Prediction: 🔍
Current Price Estimation: 🔒
0-Day Unlock Unlock Unlock Unlock
Today Unlock Unlock Unlock Unlock
Threat Intelligenceinfo
Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍
Countermeasuresinfo
Recommended: no mitigation known
Status: 🔍
0-Day Time: 🔒
Timelineinfo
04/07/2026 CVE reserved
04/20/2026 +13 days Advisory disclosed
04/20/2026 +0 days VulDB entry created
04/20/2026 +0 days VulDB entry last update
Sourcesinfo
Advisory: github.com
Status: Not defined
CVE: CVE-2026-5760 (🔒)
GCVE (CVE): GCVE-0-2026-5760
GCVE (VulDB): GCVE-100-358302
Entryinfo
Created: 04/20/2026 16:49
Changes: 04/20/2026 16:49 (53)
Complete: 🔍
Cache ID: 99:BFC:101
Discussion
No comments yet. Languages: en.
Please log in to comment.
◂ PreviousOverviewNext ▸