---
id: "CVE-2026-58505"
page: "https://infrastack.ai/live/CVE-2026-58505"
kind: "vulnerability"
aliases: ["CVE-2026-58505"]
title: "geojson-vt: deeply nested GeometryCollection crashes Node.js process"
severity: "high"
cvss: 7.5
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["geospatial", "maplibre", "node.js", "package", "tile-server"]
not_affected_if: ["browser-only", "no-untrusted-geojson-input"]
published_at: "2026-11-11T19:17:42+00:00"
first_seen_at: "2026-11-11T19:28:47+00:00"
updated_at: "2026-11-11T19:30:05+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-58505", "first_seen_at": "2026-11-11T19:28:47+00:00"}]
exploit_sources: []
---

# geojson-vt: deeply nested GeometryCollection crashes Node.js process

Link for people: https://infrastack.ai/live/CVE-2026-58505 (this .md is for agents)

A deeply nested GeometryCollection passed to the geojson-vt library exhausts the call stack during conversion, throwing an unhandled RangeError that terminates the process. An unauthenticated remote attacker can crash a server that accepts GeoJSON over the network with one crafted request.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed version with `npm ls geojson-vt @maplibre/geojson-vt` or `npm ls @maplibre/geojson-vt`.
- Look for services that construct `GeoJSONVT` from request bodies or uploaded GeoJSON.

## Fix

- `@maplibre/geojson-vt` `6.1.1` (fixed in this version; sources do not say which other package names are affected).

## Timeline

- 2026-11-11T19:28:47+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-58505

## Documents

- [advisory] Vendor advisory: github.com https://github.com/maplibre/geojson-vt/security/advisories/GHSA-75qh-632x-j5pr
- [fix] Patch: github.com https://github.com/maplibre/geojson-vt/commit/cb85688270d80894ce377969c75e631fe4b04c82
- [fix] Release notes: github.com https://github.com/maplibre/geojson-vt/releases/tag/v6.1.1

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
