CVE-2026-42351: pygeoapi 0.23.x: Path Traversal in STAC FileSystemProvider
Impact A raw string path concatenation vulnerability in pygeoapi's STAC FileSystemProvider plugin can allow for requests to STAC collection based collections to expose directories without authentication. The issue manifests when pygeoapi is deployed without a proxy or web front end that would normalize URLs with .. values, along with a resource of type stac-collection defined in configuration.
Published Apr 29, 2026 · Updated May 13, 2026
Affected packages
pygeoapi
- Ecosystem
- PyPI
- Affected
- >= 0.23.0, < 0.23.3
- Fixed in
- 0.23.3
- Check
pip show pygeoapi
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
A raw string path concatenation vulnerability in pygeoapi's STAC FileSystemProvider plugin can allow for requests to STAC collection based collections to expose directories without authentication. The issue manifests when pygeoapi is deployed without a proxy or web front end that would normalize URLs with .. values, along with a resource of type stac-collection defined in configuration.
Patches
The issue has been patched in master branch and made available as part of the 0.23.3 release.
The commit/fix can be found in bf25b8695edbdd5476eeffc102b633d1d3e45f52.
Workarounds
Users can safeguard existing applications by disabling STAC collection based resources in their pygeoapi config, until 0.23.3 can be installed and deployed.
Credited to Elnimo-00.
References
- https://github.com/geopython/pygeoapi/security/advisories/GHSA-f6pr-83pg-ghh6
- https://github.com/geopython/pygeoapi/commit/bf25b8695edbdd5476eeffc102b633d1d3e45f52
- https://nvd.nist.gov/vuln/detail/CVE-2026-42351
- https://github.com/geopython/pygeoapi/releases/tag/0.23.3
- https://github.com/advisories/GHSA-f6pr-83pg-ghh6
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
