), allowing for the execution of arbitrary JavaScript. This issue is fixed in version 3.4.0.","datePublished":"2025-12-08T23:54:37.955Z","dateModified":"2026-02-04T08:15:05.463Z","url":"https://radar.offseq.com/threat/cve-2025-66469-cwe-79-improper-neutralization-of-i-fdd6e9a9","author":{"@type":"Organization","name":"OffSeq Threat Intelligence","url":"https://radar.offseq.com"},"publisher":{"@type":"Organization","name":"OffSeq","logo":{"@type":"ImageObject","url":"https://radar.offseq.com/favicon.png"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://radar.offseq.com/threat/cve-2025-66469-cwe-79-improper-neutralization-of-i-fdd6e9a9"},"identifier":"CVE-2025-66469","contentRating":"MEDIUM","keywords":"cve,cve-2025-66469,cwe-79"}
Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-66469: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in zauberzeug nicegui

0
Medium
VulnerabilityCVE-2025-66469cvecve-2025-66469cwe-79
Published: Mon Dec 08 2025 (12/08/2025, 23:54:37 UTC)
Source: CVE Database V5
Vendor/Project: zauberzeug
Product: nicegui

Description

NiceGUI is a Python-based UI framework. Versions 3.3.1 and below are vulnerable to Reflected XSS through its ui.add_css, ui.add_scss, and ui.add_sass functions. The functions lack proper sanitization or encoding for the JavaScript context they generate. An attacker can break out of the intended <style> or <script> tags by injecting closing tags (e.g., </style> or </script>), allowing for the execution of arbitrary JavaScript. This issue is fixed in version 3.4.0.

AI-Powered Analysis

AILast updated: 12/16/2025, 06:02:44 UTC

Technical Analysis

CVE-2025-66469 identifies a reflected Cross-Site Scripting (XSS) vulnerability in the NiceGUI Python UI framework, specifically affecting versions prior to 3.4.0. The vulnerability stems from the ui.add_css, ui.add_scss, and ui.add_sass functions, which fail to properly sanitize or encode user input before embedding it into JavaScript contexts within web pages. This improper neutralization allows attackers to inject malicious payloads by inserting closing tags such as </style> or </script>, effectively breaking out of the intended CSS or script blocks and executing arbitrary JavaScript code in the victim's browser. The attack vector is remote and requires no privileges or authentication but does require user interaction, such as clicking a crafted link or visiting a malicious page. The vulnerability impacts confidentiality and integrity by enabling theft of session tokens, user credentials, or performing actions on behalf of the user. Availability is not directly affected. The vulnerability has a CVSS 3.1 base score of 6.1, indicating medium severity, with a vector of AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N. No known exploits have been reported in the wild as of the publication date. The issue is resolved in NiceGUI version 3.4.0, which implements proper input sanitization and encoding to prevent script injection. Organizations using NiceGUI in web-facing applications should upgrade promptly to mitigate risk.

Potential Impact

For European organizations, this vulnerability poses a moderate risk primarily to web applications built with NiceGUI versions below 3.4.0. Successful exploitation can lead to unauthorized disclosure of sensitive information such as session cookies or personal data, undermining user privacy and potentially violating GDPR requirements. Attackers could also manipulate the integrity of displayed content or perform actions on behalf of users, leading to reputational damage and operational disruptions. While the vulnerability does not directly affect system availability, the indirect consequences of compromised user trust and potential regulatory penalties can be significant. Sectors with high reliance on web interfaces, including finance, healthcare, and public services, are particularly vulnerable. The lack of authentication requirement and ease of exploitation increase the likelihood of targeted phishing or social engineering campaigns leveraging this flaw. However, the absence of known active exploits reduces immediate risk, though proactive patching remains critical.

Mitigation Recommendations

European organizations should immediately upgrade all NiceGUI deployments to version 3.4.0 or later to eliminate the vulnerability. Where immediate upgrading is not feasible, implement strict input validation and sanitization on all user-supplied data passed to ui.add_css, ui.add_scss, and ui.add_sass functions, ensuring that injected content cannot break out of style or script contexts. Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts and reduce the impact of potential XSS attacks. Conduct thorough code reviews and penetration testing focused on client-side injection vectors in applications using NiceGUI. Educate users and administrators about the risks of clicking untrusted links and the importance of applying security updates promptly. Monitor web application logs for suspicious requests that may indicate attempted exploitation. Additionally, consider implementing web application firewalls (WAFs) with rules designed to detect and block reflected XSS payloads targeting NiceGUI endpoints.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2025-12-02T15:43:16.586Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6937671f9bbcd7dc91cb4c94

Added to database: 12/9/2025, 12:02:39 AM

Last enriched: 12/16/2025, 6:02:44 AM

Last updated: 2/4/2026, 8:15:05 AM

Views: 98

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats