Vulnerability PYSEC-2026-4218

Medium Risk
MEDIUM RISK
CVSS Score: 4.0
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
3 days ago
October 15, 2026 at 10:22 AM UTC
geopy: Regular Expression Denial of Service (ReDoS) in geopy.Point
0.92 - 2.4.1
0.92 - 2.4.1

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.

Impacted packages

Timeline

Published
3 days ago
October 15, 2026 at 10:22 AM UTC
Fixed (2.5.0)
3 months ago
July 12, 2026 at 07:50 PM UTC
Last Modified
3 days ago
October 15, 2026 at 02:45 PM UTC