Vulnerability · Published Apr 17, 2026 · Assigned by GitHub_M

CVE-2026-40258Gramps Web API has Zip Slip Path Traversal in Media Archive Import

Critical 9.1

In plain English

A critical-severity path traversal in gramps-web-api from gramps-project. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.1Critical
Exploit odds (30 days)0.4%top 65.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

The Gramps Web API is a Python REST API for the genealogical research software Gramps. Versions 1.6.0 through 3.11.0 have a path traversal vulnerability (Zip Slip) in the media archive import feature. An authenticated user with owner-level privileges can craft a malicious ZIP file with directory-traversal filenames to write arbitrary files outside the intended temporary extraction directory on the server's local filesystem. Startig in version 3.11.1, ZIP entry names are now validated against the resolved real path of the temporary directory before extraction. Any entry whose resolved path falls outside the temporary directory raises an error and aborts the import.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIgramps-webapi3.11.1GHSA-m5gr-86j6-99jp
PyPIgramps-webapi3.11.1PYSEC-2026-346

Affected products (as reported)

VendorProductVersions
gramps-project gramps-web-api >= 1.6.0, < 3.11.1

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

References