Disclosed weakness · no CVE recorded

Tokenizer normalization changes could weaken prompt-injection guards

Hugging Face / affected guard publishers · Transformers v5 loading DeBERTa-based prompt-injection guards

First documented disclosure · Review checkpoint

Summary

A runtime upgrade could change a guard’s decisions even when its model weights remained identical.

Severity and exploitation evidence

No CVSS score recorded in this review.

Exploitation not established: Public originals and static source review establish the reported weakness or controlled demonstration. Malicious exploitation against users is not established; no exploit, package or model was executed in this review.

Exploitation evidence source

Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.

How the weakness works

Dedicated v5 tokenizer loading paths can replace serialized normalization stages or omit SentencePiece’s precompiled normalization, changing the token IDs supplied to the classifier.

Conditions required

A deployment uses an affected checkpoint and tokenizer-loading path as a prompt-injection detector; an attacker supplies text whose normalization changes, such as compatibility-width or invisible-character variants.

Potential impact

The controlled study reports missed canaries and changed false-positive rates. It does not establish downstream unauthorized tool execution or a production victim.

Affected versions and configurations

The study fully compared Transformers 5.15.0 and 5.24.0 against 4.57.6 for two pinned checkpoints, and reports the same token-probe discrepancy on 5.24.1. This is not a claim that every v5 tokenizer or guard is affected.

Fix and mitigation status

No released fix verified. PR 49579 and PR 50908 remain open; 5.24.1 DeBertaV2Tokenizer source still omits the precompiled normalization step. The researcher’s direct-tokenizer-file workaround is checkpoint-specific.

Practical next steps

Pin the guard’s validated runtime and tokenizer artifacts, compare reference token IDs and detection decisions before dependency changes, and retain authorization controls outside the classifier.

Operating lesson

A security model’s behavior includes its preprocessing runtime, not just its weight files.

Evidence and limits

Issue 49622 named the ProtectAI guard on October 15; tracker 50674 added the Prompt Guard mirror on November 12. The November 27 measurement and November 29 coverage do not reset the underlying disclosure. At threshold 0.5, the public Prompt Guard 2 mirror detected 11 of 14 injection canaries in each of three transformed groups under 4.57.6 and none under the tested 5.x versions. ProtectAI fullwidth detection changed 14/14 to 12/14 while false positives changed 67/680 to 89/680. The official gated Meta checkpoint was not tested; mirror equivalence is an author assumption. Results, scoring code, open PR state and tagged tokenizer source were read without running models. The dated README describes November 24 results, but its first public push time was not established. No CVE, score or universal safe workaround is assigned.

Sources