Cross-site scripting in rails-html-sanitizer - #VU161895
Published: November 8, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to execute JavaScript in other users' browsers when they view affected output.
The vulnerability exists due to unsynchronized shared allowlist state in rails-html-sanitizer during concurrent sanitization calls with differing options in a multithreaded process. An unauthenticated remote attacker can trigger a path permitting scripts or event handlers concurrently with a stricter call, causing malicious content to survive sanitization and reach victims.