Relative Path Traversal Affecting nicegui package, versions [1.4.6,1.4.21)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.05% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PYTHON-NICEGUI-6613067
  • published 14 Apr 2024
  • disclosed 12 Apr 2024
  • credit sunriseXu

How to fix?

Upgrade nicegui to version 1.4.21 or higher.

Overview

nicegui is a Create web-based user interfaces with Python. The nice way.

Affected versions of this package are vulnerable to Relative Path Traversal due to the handling of resource files under the /_nicegui/{__version__}/resources/{key}/{path:path} route. An attacker can read any file on the backend filesystem which the web server has access to by accessing the NiceUI leaflet website.

References

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
8.2 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    None
  • Availability (A)
    Low