Intel

AIKIDO-2026-603313

nicegui is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)GHSA-955g-h32v-mvrr Published Aug 14, 2026

61

Medium Risk

This Affects:

PYTHONnicegui
1.2.2 - 3.15.0
Fixed in 3.16.0
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

nicegui is vulnerable to Cross-Site Scripting (XSS) in versions 1.2.2 - 3.15.0.

How to fix this

Upgrade the nicegui library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform