# Tokenizer settings leave 255 of 400 popular chat models exposed to prompt-injection exploits.

Published: 2026-09-29 · Updated: 2026-09-30 · Sources: 1

## Summary

Researchers show a forged template marker such as <|im_start|> can reach a model either as a single reserved control token or as an identical sequence of ordinary subword tokens.

When defenders encode forged markers as subwords (keeping the visible text unchanged), attack success falls by 39–66 percentage points on three of four open-weight model families.

The standard tokenizer mitigation only applies to tokens a configuration declares special, and in 33 of 67 distinct tokenizer configurations it leaves tool-protocol tokens unchanged.

Those vulnerable configurations cover 255 of 400 of the most-downloaded chat models on Hugging Face, so the weakness is widespread in deployed models.

A training-free fallback — rendering untrusted payloads as images called Pictionary — consistently reduces attacks across ten models while largely preserving benign utility.

## Sources

- arXiv cs.AI: [Same Bytes, Different Authority: Reserved-Token Representations in Chat-Template Prompt Injection](https://arxiv.org/abs/2609.35932)
- arXiv cs.AI: [Render Before Reading: Visual Rendering as a Prompt Injection Defense](https://arxiv.org/abs/2609.36121)
- arXiv cs.AI: [Meta-SecAlign: Training LLMs against Prompt Injection for Robust Agents](https://arxiv.org/abs/2507.02735)
- arXiv cs.AI: [Reinforcement Learning from Intermediate Renders for Image-to-Code Generation](https://arxiv.org/abs/2609.34587)

---

Summary written by Brief (itsbrief.com) from the reporting linked above. Canonical page: https://itsbrief.com/story/tokenizer-settings-leave-255-of-400-popular-chat-models-05a98d5e
