VDB
Sign up
HIGH7.3

PYSEC-2026-1919

SGLang Remote Code Execution Vulnerability via Unsafe Deserialization in update_weights_from_tensor

Quick fix

PYSEC-2026-1919 — sglang: upgrade to the fixed version with the command below.

pip install --upgrade 'sglang>=0.5.4'

Details

A security flaw has been discovered in lmsys sglang 0.4.6. Affected by this vulnerability is the function main of the file /update_weights_from_tensor. The manipulation of the argument serialized_named_tensors results in deserialization. The attack can be launched remotely. The exploit has been released to the public and may be exploited. The vendor was contacted early about this disclosure but did not respond in any way.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/sglang
Introduced in: 0Fixed in: 0.5.4
Fixpip install --upgrade 'sglang>=0.5.4'

References