A reflected Cross-Site Scripting (XSS) vulnerability exists in NiceGUI versions prior to 3.4.0 in the functions ui.add_css, ui.add_scss, and ui.add_sass. These functions dynamically inject CSS or SCSS/SASS styles but do not properly sanitize input, allowing attackers to inject closing style or script tags and execute arbitrary JavaScript. This can occur when untrusted input, such as URL parameters, is passed directly to these functions without validation.