CVE-2026-5760: Code Injection

Published Apr 20, 2026
·
Updated

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

Affected Software

2 affected components
SGLang
Lmsys Sglang<0.5.11

Event History

Apr 20, 2026
CVE Published
via MITRE·01:46 PM
Data Sourced
via MITRE·01:46 PM
DescriptionWeakness
Data Sourced
via NVD·02:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-5760?

CVE-2026-5760 is classified as a critical vulnerability due to its potential for Remote Code Execution.

2

How do I fix CVE-2026-5760?

To fix CVE-2026-5760, update SGLang to the latest version that addresses this security issue.

3

What is the impact of CVE-2026-5760?

The impact of CVE-2026-5760 allows attackers to execute arbitrary code on the server through malicious model files.

4

Who is affected by CVE-2026-5760?

CVE-2026-5760 affects users of SGLang who utilize the reranking endpoint without proper validation.

5

What component of SGLang is vulnerable in CVE-2026-5760?

The vulnerable component in CVE-2026-5760 is the reranking endpoint (/v1/rerank) which improperly handles the loading of unsafe chat templates.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203