GHSA-78qv-3mpx-9cqq · Severity: medium · Ecosystem: pip — NiceGUI vulnerable to XSS via Code Injection during client-side element function execution
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.
Conclusion & alert: CVE-2026-27156 is rated Low Risk (27.2/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.03%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-02-25 | — | 0.03% | — |
Full EPSS history (1 record total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 6.1 | 3.1 | MEDIUM |
|
2.8 | 2.7 | [email protected] |
GHSA-78qv-3mpx-9cqq · Severity: medium · Ecosystem: pip — NiceGUI vulnerable to XSS via Code Injection during client-side element function execution
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| zauberzeug | nicegui | < 3.8.0 | cpe:2.3:a:zauberzeug:nicegui:*:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/zauberzeug/nicegui/commit/1861f59cc374ca0dc9d970b157ef3774720f8dbf | Patch |
| https://github.com/zauberzeug/nicegui/security/advisories/GHSA-78qv-3mpx-9cqq | Mitigation Vendor Advisory |