CVE-2025-66645

NiceGUI Path Traversal Vulnerability in app.add_media_files() Allows Arbitrary File Reading

Published Dec 9, 2025 CVSS 3.1 · 7.5 High EPSS 1.2% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-hxp3-63hc-5366 NiceGUI has a path traversal in app.add_media_files() allows arbitrary file read
History
Type Values Removed Values Added
First Time appeared Zauberzeug
Zauberzeug nicegui
CPEs cpe:2.3:a:zauberzeug:nicegui:*:*:*:*:*:*:*:*
Vendors & Products Zauberzeug
Zauberzeug nicegui
Type Values Removed Values Added
First Time appeared Nicegui
Nicegui nicegui
Vendors & Products Nicegui
Nicegui nicegui
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title NiceGUI Path Traversal Vulnerability in app.add_media_files() Allows Arbitrary File Reading
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Dec 10, 2025, 4:50 PM
Reserved
Dec 5, 2025, 8:23 PM
Status
Analyzed
Published
Dec 9, 2025, 10:16 PM
Modified
Oct 14, 2026, 9:10 PM