selma is vulnerable to Cross-Site Scripting (XSS)
61
CVE Score
Medium
Cross-Site Scripting (XSS)
Selma streams sanitized HTML byte-for-byte and does not escape a literal < that the tokenizer classifies as text, for example in <<b>. When the sanitizer then removes an adjacent disallowed element, unknown element, or comment, the unescaped < fuses with the surrounding text and re-parses as a real tag in the browser, producing a mutation XSS that bypasses the second-pass tagfilter for tags outside its fixed list. All built-in sanitizer configurations and custom configurations are affected. The fix escapes literal < in entity-decoding text contexts so text stays text regardless of what the sanitizer removes around it.
Upgrade the selma library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.0.1 - 0.5.2
Fixed in 0.5.3selma is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 0.5.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.