---
title: "CVE-2026-40258: gramps-webapi: Zip Slip Path Traversal in Media Archive Import"
url: https://erroneo.us/security/cve/CVE-2026-40258/
description: "CVE-2026-40258 (gramps-webapi (PyPI)): The Gramps Web API is a Python REST API for the genealogical research software Gramps. Versions 1.6.0 through 3.11.0…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-04-17
date_modified: 2026-04-24
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-40258"
kev: false
cvss: 9.1
epss: 0.00611
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2026-40258: gramps-webapi: Zip Slip Path Traversal in Media Archive Import

**Signal:** Critical, preconditions apply. Severe if exploited, but exploitation needs conditions that may not apply to you. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 0.6% , percentile 49: FIRST’s model estimates a 0.6% chance of exploitation activity in the next 30 days, higher than 49% of all scored CVEs (low). EPSS is a probability, not a verdict.
- Needs an account (high (admin)). Exposure depends on who can log in.
- Only applies if your dependency tree includes gramps-webapi (PyPI) >= 1.6.0, <= 3.11.0, fixed in 3.11.1 . Check your lockfile, including transitive dependencies.

## What it is

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

- PyPI `gramps-webapi` >= 1.6.0, <= 3.11.0 → fixed: 3.11.1

## Affected products (CVE record)

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

## Severity

- GitHub_M CVSS 3.1: 9.1 `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- GitHub CVSS 3.1: 9.1 `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.61% probability of exploitation activity in the next 30 days; percentile 49.

## Sources

- [GitHub Advisory GHSA-m5gr-86j6-99jp](https://github.com/advisories/GHSA-m5gr-86j6-99jp)
- [CVE.org record CVE-2026-40258](https://www.cve.org/CVERecord?id=CVE-2026-40258)
- [NVD entry CVE-2026-40258](https://nvd.nist.gov/vuln/detail/CVE-2026-40258)
- [github.com](https://github.com/gramps-project/gramps-web-api/security/advisories/GHSA-m5gr-86j6-99jp)
- [github.com](https://github.com/gramps-project/gramps-web-api/commit/3ed4342711e3ec849552df09b1fe2fbf2ca5c29a)
- [github.com](https://github.com/gramps-project/gramps-web-api/releases/tag/v3.11.1)

---
Source page: https://erroneo.us/security/cve/CVE-2026-40258/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
