Improper Validation of Array Index Affecting vllm package, versions [0.20.1,0.29.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.37% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-VLLM-21707823
  • published25 Oct 2026
  • disclosed25 Oct 2026
  • creditmschwarzl

Introduced: 25 Oct 2026

NewCVE-2026-116181  (opens in a new tab)
CWE-129  (opens in a new tab)

How to fix?

Upgrade vllm to version 0.29.0 or higher.

Overview

vllm is an A high-throughput and memory-efficient inference and serving engine for LLMs

Affected versions of this package are vulnerable to Improper Validation of Array Index via the _validate_stop_token_ids method (absent before the fix) in vllm/sampling_params.py, where stop_token_ids supplied in a sampling request are not validated against the model's vocabulary size. An authenticated attacker can submit a request containing out-of-range token IDs in stop_token_ids, causing the server to crash when those IDs are used as column indices into the logits tensor.

References

CVSS Base Scores

version 4.0
version 3.1