CVE-2026-42351 pygeoapi: Path Traversal in STAC FileSystemProvider

High 7.5 Published Updated

Attackers can expose directories without authentication in pygeoapi STAC collections if deployed without a normalizing proxy.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-42351?

CVE-2026-42351 is a high-severity path traversal vulnerability in geopython pygeoapi, published on 8 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

pygeoapi is a Python server implementation of the OGC API suite of standards. From version 0.23.0 to before version 0.23.3, 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. This issue has been patched in version 0.23.3.

Weakness: CWE-22

Which versions are affected by CVE-2026-42351?

3 open source packages ship an affected version, including pygeoapi.

PackageAffectedFixed in
pygeoapi PyPIFrom 0.23.00.23.3
pygeoapi PyPIFrom 0.23.00.23.3
pygeoapi PyPIFrom 0.23.00.23.3

How do I fix CVE-2026-42351?

Upgrade pygeoapi to 0.23.3 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-42351 being exploited?

There is no known exploitation of CVE-2026-42351 in the wild and no public exploit code.

Sources

Also known as GHSA-f6pr-83pg-ghh6, PYSEC-2026-2985.

Is CVE-2026-42351 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free