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

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-02)
- Published: 2026-04-10T21:00:09.000Z
- Modified: 2026-10-27T16:45:03.540Z
- Also known as: GHSA-m5gr-86j6-99jp, PYSEC-2026-346
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gramps-project gramps-web-api: >= 1.6.0, < 3.11.1
- gramps-webapi (PyPI): from 1.6.0 before 3.11.1

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `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 Critical `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/gramps-project/gramps-web-api/security/advisories/GHSA-m5gr-86j6-99jp> (web)
- <https://github.com/gramps-project/gramps-web-api/commit/3ed4342711e3ec849552df09b1fe2fbf2ca5c29a> (web)
- <https://github.com/gramps-project/gramps-web-api/releases/tag/v3.11.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40258> (advisory)
- <https://github.com/gramps-project/gramps-web-api> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/gramps-webapi/PYSEC-2026-346.yaml> (web)
- <https://pypi.org/project/gramps-webapi> (package, web)
- <https://github.com/advisories/GHSA-m5gr-86j6-99jp> (advisory)

## Sources

- CVE List: [CVE-2026-40258](https://www.cve.org/CVERecord?id=CVE-2026-40258), CVE Terms of Use, modified 2026-04-20
- GitHub Advisory Database: [GHSA-m5gr-86j6-99jp](https://github.com/advisories/GHSA-m5gr-86j6-99jp), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2026-40258](https://nvd.nist.gov/vuln/detail/CVE-2026-40258), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-346](https://osv.dev/vulnerability/PYSEC-2026-346), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-40258 · Whole record: https://cve.day/CVE-2026-40258.json · Rebuilt by cve.day 2026-11-25T22:59:18.971Z
