---
id: CVE-2024-32005
aliases:
  - GHSA-mwc7-64wg-pgvj
  - PYSEC-2026-1704
title: NiceGUI allows potential access to local file system
summary: NiceGUI allows potential access to local file system
severity: high
cvss: 8.2
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L'
vendor: nicegui
product: nicegui
ecosystem: pip
affected:
  - 'nicegui >= 1.4.6, < 1.4.21'
patched:
  - nicegui 1.4.21
published: '2024-04-12'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:12.883939839Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-mwc7-64wg-pgvj'
references:
  - url: >-
      https://github.com/zauberzeug/nicegui/security/advisories/GHSA-mwc7-64wg-pgvj
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-32005'
  - url: >-
      https://github.com/zauberzeug/nicegui/commit/ed12eb14f2a6c48b388a05c04b3c5a107ea9d330
  - url: 'https://github.com/zauberzeug/nicegui'
  - url: 'https://huntr.com/bounties/29ec621a-bd69-4225-ab0f-5bb8a1d10c67'
tags:
  - osv
  - pip
epss: 0.0076
epssPercentile: 0.53804
ingestedAt: '2026-07-08T18:25:51.453Z'
---

## Overview

NiceGUI is an easy-to-use, Python-based UI framework. A local file inclusion is present in the NiceUI leaflet component when requesting resource files under the `/_nicegui/{__version__}/resources/{key}/{path:path}` route. 

As a result any file on the backend filesystem which the web server has access to can be read by an attacker with access to the NiceUI leaflet website. 

This vulnerability has been addressed in version 1.4.21. Users are advised to upgrade. There are no known workarounds for this vulnerability.

## Affected packages

- `nicegui >= 1.4.6, < 1.4.21`

## Remediation

Upgrade to a patched release:

- `nicegui 1.4.21`
