Maplibre geojson-vt
geojson-vt: Uncontrolled Recursion in Nested GeoJSON GeometryCollection
geojson-vt is a JavaScript library for slicing GeoJSON data into vector tiles on the fly, primarily designed to enable rendering and interacting with large geospatial datasets on the browser side (without a server). Prior to version 6.1.1, @maplibre/geojson-vt contains an uncontrolled recursion vulnerability in its GeoJSON conversion logic. When a GeoJSONVT instance is constructed with a deeply nested GeometryCollection object, the mutually recursive functions featureToInternal and convertGeometryCollection in src/convert.ts exhaust the Node.js call stack, causing an unhandled RangeError: Maximum call stack size exceeded that terminates the process. Because the library is widely used in server-side tile services that accept GeoJSON over the network, a remote unauthenticated attacker can trigger a denial-of-service by sending a single crafted payload. No authentication is required, and no non-default library options are needed. This issue has been patched in version 6.1.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 6.1.1
Fixed in 6.1.1
Mitigation
Upgrade geojson-vt to 6.1.1 or later.
References
- Vendor advisory github.com/maplibre/geojson-vt/security/adviso…
- Patch github.com/maplibre/geojson-vt/pull/156
- Patch github.com/maplibre/geojson-vt/commit/cb856882…
1 more
- Release notes github.com/maplibre/geojson-vt/releases/tag/v6…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.