CVE-2026-27156
February 24, 2026
NiceGUI is a Python-based UI framework. Prior to version 3.8.0, several NiceGUI APIs that execute methods on client-side elements ("Element.run_method()", "AgGrid.run_grid_method()", "EChart.run_chart_method()", and others) use an "eval()" fallback in the JavaScript-side "runMethod()" function. When user-controlled input is passed as the method name, an attacker can inject arbitrary JavaScript that executes in the victim's browser. Additionally, "Element.run_method()" and "Element.get_computed_prop()" used string interpolation instead of "json.dumps()" for the method/property name, allowing quote injection to break out of the intended string context. Version 3.8.0 contains a fix.
Affected Packages
nicegui (CONDA):
Affected version(s) >=1.2.10 <3.8.0Fix Suggestion:
Update to version 3.8.0nicegui (PYTHON):
Affected version(s) >=0.1.0 <3.8.0Fix Suggestion:
Update to version 3.8.0Related Resources (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
LOW
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.1
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
EPSS
Base Score:
0.04