nicegui is vulnerable to Cross-Site Scripting (XSS)
61
Medium Risk
ColorPicker.set_color(), also used internally by ui.color_input, inserts the supplied color value into a .props() declaration without escaping prop-syntax metacharacters. A value containing a double quote can terminate the intended model-value prop and inject an additional :-prefixed prop, which NiceGUI evaluates as a JavaScript expression outside the sanitizer path. An application that passes untrusted, stored, or cross-user color values to these APIs can therefore have arbitrary JavaScript run in a victim's session. The fix assigns the color value directly instead of routing it through the prop-string parser.
You are affected if you are using a version that falls within the vulnerable range and your application passes user-controlled or cross-user color values to ColorPicker.set_color() or ui.color_input.
nicegui is vulnerable to Cross-Site Scripting (XSS) in versions 1.2.2 - 3.15.0.
Upgrade the nicegui 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