{"cve":"CVE-2026-40258","nvd":{"published":"2026-04-17T22:16:32.067","modified":"2026-10-26T21:10:00.170","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","score":9.1},"cwes":["CWE-22"],"references":["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/security/advisories/GHSA-m5gr-86j6-99jp"],"products":[],"source":"nvd","synced_at":"2026-10-26T21:38:48.864438205+00:00"},"epss":{"cve":"CVE-2026-40258","score":0.00401,"percentile":0.34064,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-m5gr-86j6-99jp","url":"https://osv.dev/vulnerability/GHSA-m5gr-86j6-99jp","summary":"gramps-webapi: Zip Slip Path Traversal in Media Archive Import","modified":"2026-06-29T12:26:15.758658489Z","packages":[{"ecosystem":"PyPI","name":"gramps-webapi","purl":"pkg:pypi/gramps-webapi","ranges":[">=1.6.0 <3.11.1"],"fixed":["3.11.1"]}]},{"id":"PYSEC-2026-346","url":"https://osv.dev/vulnerability/PYSEC-2026-346","summary":"gramps-webapi: Zip Slip Path Traversal in Media Archive Import","modified":"2026-07-13T16:15:26.843864736Z","packages":[{"ecosystem":"PyPI","name":"gramps-webapi","purl":"pkg:pypi/gramps-webapi","ranges":[">=1.6.0 <3.11.1"],"fixed":["3.11.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}