Description
Taipy 4.1.1, fixed in commit 129fd40, contains a path traversal vulnerability in the ElementLibrary.get_resource() method in taipy/gui/extension/library.py that allows unauthenticated attackers to escape the intended module directory by exploiting an incomplete path containment check using str.startswith() without a trailing path separator. Attackers can send crafted GET requests with path traversal segments targeting a prefix-matching sibling directory on disk, bypassing the directory containment check because Flask's path converter and Werkzeug's WSGI layer preserve the traversal segments while the resolved path still satisfies the flawed startswith comparison, enabling unauthorized file access outside the intended library directory.
Published: 2026-05-27
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Taipy 4.1.1 contains a path traversal flaw in the ElementLibrary.get_resource() function that fails to correctly validate the target path. The bug is caused by using a startswith comparison without a trailing separator, allowing attackers to craft requests that resolve to directories outside the intended module folder. When an attacker supplies a GET request containing traversal segments such as ../, the vulnerable check mistakenly permits the path because the resolved absolute path still begins with the expected module prefix. This flaw permits reading files that are not part of the library, leading to confidential data leakage. The vulnerability is classified as CWE-22.

Affected Systems

Avaiga's Taipy product, specifically version 4.1.1. The issue was fixed in commit 129fd407ffca49ee4ab853772c88d0c873e038dd and is not present in later releases.

Risk and Exploitability

The CVSS score is 8.7, indicating a high severity. Although an EPSS score is not available, the lack of authentication requirements makes exploitation straightforward for anyone able to send HTTP requests to the application. The vulnerability is not yet listed in the CISA KEV catalog, but the high impact and ease of exploitation warrant immediate attention. Attackers can trigger it by accessing a URL that includes traversal segments, and the application will serve files located outside the intended directory, potentially exposing sensitive configuration or system files.

Generated by OpenCVE AI on May 27, 2026 at 19:45 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the patch described in commit 129fd407ffca49ee4ab853772c88d0c873e038dd or upgrade to a later release that includes the fix.
  • Restart or reload the Taipy application to ensure the updated code takes effect.
  • If a patch cannot be applied promptly, temporarily block or hard‑limit access to the /ElementLibrary/get_resource endpoint, or configure Flask to disallow traversal patterns by using safe URL routing or path sanitization.
  • Optionally, implement a WAF rule to reject URL paths containing .. or similar traversal substrings to reduce the attack surface until a code fix is available.

Generated by OpenCVE AI on May 27, 2026 at 19:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 28 May 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 28 May 2026 04:00:00 +0000

Type Values Removed Values Added
First Time appeared Avaiga
Avaiga taipy
Vendors & Products Avaiga
Avaiga taipy

Wed, 27 May 2026 15:15:00 +0000

Type Values Removed Values Added
Description Taipy 4.1.1, fixed in commit 129fd40, contains a path traversal vulnerability in the ElementLibrary.get_resource() method in taipy/gui/extension/library.py that allows unauthenticated attackers to escape the intended module directory by exploiting an incomplete path containment check using str.startswith() without a trailing path separator. Attackers can send crafted GET requests with path traversal segments targeting a prefix-matching sibling directory on disk, bypassing the directory containment check because Flask's path converter and Werkzeug's WSGI layer preserve the traversal segments while the resolved path still satisfies the flawed startswith comparison, enabling unauthorized file access outside the intended library directory.
Title Taipy 4.1.1 Path Traversal via ElementLibrary.get_resource()
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'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-05-28T15:38:26.385Z

Reserved: 2026-05-21T18:34:46.417Z

Link: CVE-2026-48544

cve-icon Vulnrichment

Updated: 2026-05-28T15:38:15.562Z

cve-icon NVD

Status : Deferred

Published: 2026-05-27T15:16:30.880

Modified: 2026-06-17T10:55:04.407

Link: CVE-2026-48544

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-28T03:45:05Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')