# PYSEC-2026-4000: vLLM through 0.29.0 fails to properly validate bad\_words token indices against the model's generation output width in SamplingParams.update\_from\_tokenizer()

- Database: PyPA
- Published: 2026-09-19
- Modified: 2026-09-29

## Tracked as

- [CVE-2026-93989](https://cve.now/CVE-2026-93989.md): vLLM through 0.29.0 Cross-Request Logits Corruption via bad\_words

## Affected versions

- vllm (PyPI): fixed in 0.30.0

## Description

vLLM through 0.29.0 fails to properly validate bad_words token indices against the model's generation output width in SamplingParams.update_from_tokenizer(). Attackers can supply out-of-bounds token indices that corrupt logits memory of concurrent requests, causing different in-flight HTTP requests to return incorrect tokens.

## References

- https://github.com/vllm-project/vllm/blob/98dff2a81d747d1dba01a47f939f48c3526d4206/vllm/sampling_params.py#L694-L753
- https://github.com/vllm-project/vllm/blob/98dff2a81d747d1dba01a47f939f48c3526d4206/vllm/v1/worker/gpu/sample/bad_words.py
- https://www.vulncheck.com/advisories/vllm-through-0.29.0-cross-request-logits-corruption-via-bad-words
- https://github.com/vllm-project/vllm/pull/48824
- https://github.com/vllm-project/vllm

Page: https://cve.now/PYSEC-2026-4000

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
