tokenizers is vulnerable to Cross-Site Scripting (XSS)
61
Medium Risk
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.
You are affected if you are using a version that falls within the vulnerable range.
tokenizers is vulnerable to Cross-Site Scripting (XSS) in versions 0.10.0 - 0.22.2.
Upgrade the tokenizers library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant