Advisory

PYSEC-2026-4218

Also known as: CVE-2026-77387, GHSA-mhvh-fq92-pfmr

Summary

geopy: Regular Expression Denial of Service (ReDoS) in geopy.Point

Details

Impact

geopy.Point and Point.from_string() may take excessive CPU time when parsing long, malformed coordinate strings due to inefficient regular-expression behavior. The numeric Point constructor is not affected.

Geocoders' reverse methods called with string inputs exercise the vulnerable path.

Applications are affected when they pass attacker-controlled strings to these APIs without an appropriate length limit. Repeated requests may cause denial of service.

Patches

Fixed in geopy 2.5.0 by rejecting overly long (over 256 characters) coordinate strings before parsing.

Workarounds

Limit coordinate strings to a reasonable maximum length, such as 256 characters, before passing them to geopy.

Severity

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

Dates

Published
2026-10-15 10:22 UTC
Modified
2026-10-15 14:45 UTC

Affected packages and fixes

geopy

PyPI · All systems

Affected

  • introduced 0, fixed 2.5.0 (ecosystem)

Fixed versions

2.5.0

Fix

  • Fixed version 2.5.0
    pip install --upgrade geopy==2.5.0

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