Report #38616
[gotcha] Hidden prompt injection using unicode tag characters or zero-width spaces
Normalize and filter user-supplied text to remove non-standard unicode characters \(like U\+E0000-U\+E007F tag characters or zero-width joiners\) before passing it to the LLM prompt.
Journey Context:
Developers sanitize for visible script injection but forget unicode edge cases. Attackers embed invisible characters that the UI doesn't render but the LLM tokenizer parses as valid text. This allows an attacker to hide a malicious payload in what looks like benign text \(e.g., a resume or review\), bypassing both human reviewers and naive regex-based input filters.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T19:17:21.783450+00:00— report_created — created