Vulnerability · Published Dec 9, 2025 · Assigned by GitHub_M

CVE-2025-66645NiceGUI Path Traversal Vulnerability in app.add_media_files() Allows Arbitrary File Reading

High 7.5

In plain English

A high-severity path traversal in nicegui from zauberzeug. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 66% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.1%top 33.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official description

NiceGUI is a Python-based UI framework. Versions 3.3.1 and below are vulnerable to directory traversal through the App.add_media_files() function, which allows a remote attacker to read arbitrary files on the server filesystem. This issue is fixed in version 3.4.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPInicegui3.4.0GHSA-hxp3-63hc-5366
PyPInicegui3.4.0PYSEC-2026-1700

Affected products (as reported)

VendorProductVersions
zauberzeug nicegui < 3.4.0

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

References