Gramps Web API has Zip Slip Path Traversal in Media Archive Import
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| gramps-project | gramps-web-api | 1.6.0 to before 3.11.1 | 3.11.1 | Patch available | CNA |
| — | gramps-webapi (PyPI) | 1.6.0 to before 3.11.1 | 3.11.1 | Patch available | GHSA-m5gr-86j6-99jp |
- gramps-web-api Vendorgramps-project Affected 1.6.0 to before 3.11.1 Fixed in 3.11.1 Patch available CNA
- gramps-webapi (PyPI) Vendor— Affected 1.6.0 to before 3.11.1 Fixed in 3.11.1 Patch available GHSA-m5gr-86j6-99jp
Remediation
- Fix · CNA gramps-web-api (gramps-project) Fixed in 3.11.1
- Fix · GHSA-m5gr-86j6-99jp gramps-webapi (PyPI) Fixed in 3.11.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40258
- 2026-10-03 Alias added: GHSA-m5gr-86j6-99jp
References
Other 6
- https://github.com/gramps-project/gramps-web-api/security/advisories/GHSA-m5gr-86j6-99jp
- https://github.com/gramps-project/gramps-web-api/commit/3ed4342711e3ec849552df09b1fe2fbf2ca5c29a
- https://github.com/gramps-project/gramps-web-api/releases/tag/v3.11.1
- https://github.com/gramps-project/gramps-web-api
- https://github.com/pypa/advisory-database/tree/main/vulns/gramps-webapi/PYSEC-2026-346.yaml
- https://pypi.org/project/gramps-webapi
Sources
- CVE-2026-40258 · CVE Program
- CVE-2026-40258 · NVD
- FIRST EPSS
- GHSA-m5gr-86j6-99jp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences