tokenizers is vulnerable to Cross-Site Scripting (XSS)
61
CVE Score
Medium
Cross-Site Scripting (XSS)
The Python EncodingVisualizer in bindings/python/py_src/tokenizers/tools/visualizer.py embedded span_text directly into generated HTML without escaping. When visualization content includes attacker-controlled text, rendered output can inject unintended HTML or script into the consumer context. This creates a cross-site scripting risk in workflows that display the visualizer output in a browser or notebook frontend. The fix applies html.escape before interpolation and also closes any remaining open annotation span tags for safer, well-formed output.
Upgrade the tokenizers library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.10.0 - 0.22.2
Fixed in 0.23.1tokenizers is vulnerable to Cross-Site Scripting (XSS) in versions 0.10.0 - 0.22.2.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.