---
schema_version: '1.0'
id: security-20260812-d0ada6
title: CVE-2026-27156 — nicegui
url: https://osv.dev/vulnerability/PYSEC-2026-2232
url_hash: d0ada6bacb249761e3fdb72099c84904afb08f208ffc8fa72fa76b08249fcb1c
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-2232
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-27156
- PYSEC-2026-2232
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- nicegui
- PyPI
lang: en
published_at: '2026-02-24T18:29:33Z'
fetched_at: '2026-08-12T16:00:04.510908Z'
updated_at: '2026-08-22T14:45:11Z'
status: published
content_hash: ca60b68e8e780868a0c5cfaa9976702e92a47c1384a5a0363a9fe2a52eb2c59e
content_changed_at: '2026-08-22T13:15:21.598581Z'
license_note: full
summary: 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
  `runMeth
summary_source: rss
summary_en: 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 `runMeth
summary_omitted_reason: null
redistribution: true
keywords_en:
- CVE
- CVE-2026-27156
- library vulnerability
- nicegui
- PyPI
- PYSEC-2026-2232
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- software security
entities_en:
- name: CVE
  type: data
- name: PyPI
  type: artifact
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE
  type: data
- name: PyPI
  type: artifact
related_auto:
- name: Portal
  type: organization
  weight: 1.0
- name: Hugging Face
  type: organization
  weight: 1.0
computed_at: '2026-08-22T14:45:07Z'
---

# CVE-2026-27156 — nicegui

## TL;DR
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 `runMeth

## Key Points
- cve / CVE-2026-27156 / PYSEC-2026-2232 / severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N / nicegui / PyPI

## Details
**Severity:** CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
**Advisory:** PYSEC-2026-2232 (CVE-2026-27156)

**Details:**
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.

**References:**
- https://github.com/zauberzeug/nicegui/security/advisories/GHSA-78qv-3mpx-9cqq
- https://github.com/zauberzeug/nicegui/commit/1861f59cc374ca0dc9d970b157ef3774720f8dbf

_Data: OSV.dev (upstream: pypa) — https://osv.dev/vulnerability/PYSEC-2026-2232_

## Source
元記事: [CVE-2026-27156 — nicegui](https://osv.dev/vulnerability/PYSEC-2026-2232) — published 2026-02-24T18:29:33Z
