selma is vulnerable to Cross-Site Scripting (XSS)
61
Medium Risk
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.
You are affected if you are using a version that falls within the vulnerable range.
selma is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 0.5.2.
Upgrade the selma 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
ISO 42001Compliant© All Intel data is openly available and commercially licensed.