← Back to Feed
58d

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

Hugging FaceVictor (Hugging Face Staff) — https://huggingface.co/datasets/huggingface/brand-assets/blob/main/hf-logo-with-title.svg · Public domain

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 , 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 1

‹ Back to your Brief