CVE-2026-45554
Directory Traversal in NiceGUI Framework
Publication date: 2026-06-02
Last updated on: 2026-06-02
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| zauberzeug | nicegui | to 3.12.0 (exc) |
| zauberzeug | nicegui | 3.11.1 |
| zauberzeug | nicegui | 3.0.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-770 | The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. |
| CWE-248 | An exception is thrown from a function, but it is not caught. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
CVE-2026-45554 is a vulnerability in the NiceGUI Python library affecting versions 3.11.1 and earlier. It involves two FastAPI routes that serve static assets and accept a sub-path parameter that may resolve to a directory instead of a file.
When a directory is requested, an unhandled RuntimeError occurs inside Starlette's FileResponse, causing the Uvicorn server to log a full traceback. These routes are accessible without authentication, allowing a remote attacker to exploit this behavior.
The attacker can amplify log volume by repeatedly triggering this error, which consumes disk space and log-pipeline capacity on any publicly reachable NiceGUI server.
How can this vulnerability impact me? :
This vulnerability can lead to denial of service by exhausting disk space and saturating log-shipping pipelines due to excessive error logging.
It can also cause alert fatigue for administrators because of sustained error trace logging.
However, it does not impact confidentiality or integrity, and no remote code execution or data exposure occurs beyond the disclosure of the installation path in error traces.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by monitoring server logs for repeated RuntimeError tracebacks generated by requests to the two FastAPI routes serving per-component static assets in NiceGUI. These errors occur when a directory is requested instead of a file, causing unhandled exceptions logged by Uvicorn.
To detect exploitation attempts, you can look for unusual log volume spikes or repeated error tracebacks related to these routes.
Suggested commands include using grep or similar tools to search your server logs for the RuntimeError traceback patterns. For example:
- grep -i 'RuntimeError' /path/to/uvicorn.log
- grep -i 'FileResponse' /path/to/uvicorn.log
- tail -f /path/to/uvicorn.log | grep --line-buffered 'RuntimeError'
Additionally, monitoring network traffic for repeated requests to the affected FastAPI routes serving static assets may help identify potential abuse.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include upgrading NiceGUI to version 3.12.0 or later, where this vulnerability has been patched.
If upgrading is not immediately possible, you should place NiceGUI behind a reverse proxy to filter and block malicious requests targeting the vulnerable routes.
Implement rate limiting on the affected FastAPI routes to reduce the risk of log volume amplification.
Configure aggressive log rotation and monitoring to prevent disk space exhaustion and to manage log-pipeline capacity.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
The vulnerability in NiceGUI (CVE-2026-45554) primarily causes a denial of service through log volume amplification and resource exhaustion. It does not impact confidentiality or integrity, and no sensitive data exposure beyond installation path disclosure occurs.
Because the issue involves unauthenticated routes generating excessive logs and potentially causing alert fatigue or resource exhaustion, it could indirectly affect compliance by impacting system availability and monitoring capabilities.
However, there is no direct mention or evidence that this vulnerability leads to violations of data protection regulations such as GDPR or HIPAA, since it does not result in unauthorized access to personal or protected health information.