Advisory

PYSEC-2026-2985

Also known as: CVE-2026-42351, GHSA-f6pr-83pg-ghh6

Summary

pygeoapi 0.23.x: Path Traversal in STAC FileSystemProvider

Details

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2026-07-13 15:02 UTC
Modified
2026-07-13 16:32 UTC

Affected packages and fixes

pygeoapi

PyPI · All systems

Affected

  • introduced 0.23.0, fixed 0.23.3 (ecosystem)

Fixed versions

0.23.3

Fix

  • Fixed version 0.23.3
    pip install --upgrade pygeoapi==0.23.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences