CVE-2026-15830: Django Denial-of-Service Vulnerability via Nested Geometry Collections
Summary
CVE-2026-15830: Potential denial-of-service vulnerability via nested geometry collections. Affects django across 2 version ranges.
< 5.2.17
>= 6.0.0, < 6.0.8
Fixed in 5.2.17 or 6.0.8, depending on the release line you run. How to fix ↓
Also tracked for
The same CVE-2026-15830 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. It provides a robust set of features, including an ORM, routing, and templating. GeoDjango is an extension of Django that adds geographic capabilities, allowing developers to create applications that can handle spatial data. However, certain versions of Django are vulnerable to a denial-of-service attack due to improper handling of deeply nested geometry collections.
Vulnerability Detail
An issue was discovered in Django versions 5.2 before 5.2.17 and 6.0 before 6.0.8. The vulnerability lies in GeoDjango's django.contrib.gis.geos.GEOSGeometry, which can be exploited by supplying deeply nested GEOMETRYCOLLECTION objects in well-known text (WKT), well-known binary (WKB), or hex-encoded WKB formats. This leads to unbounded recursion and a segmentation fault in the underlying GEOS library, potentially causing a denial-of-service condition. Earlier unsupported Django series may also be affected, although they were not evaluated.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
< 5.2.175.2.17 -
>= 6.0.0, < 6.0.86.0.8
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
As a temporary workaround, avoid using deeply nested GEOMETRYCOLLECTION objects in your applications until you can upgrade to a patched version of Django.
Conclusion
The CVE-2026-15830 vulnerability in Django poses a significant risk of denial-of-service attacks through nested geometry collections. It is crucial for developers using affected versions to update to the latest patched versions to mitigate this risk. Utilizing tools like Vulert can help in monitoring vulnerabilities in your applications.
See every vulnerability recorded for django →
FAQ
CVE-2026-15830 is a vulnerability in Django that can lead to denial-of-service attacks through nested geometry collections.
Django versions 5.2 before 5.2.17 and 6.0 before 6.0.8 are affected. Earlier unsupported versions may also be vulnerable.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.
Exploiting this vulnerability can lead to denial-of-service conditions, causing your application to crash or become unresponsive.
You can update Django by running the command: pip install --upgrade django, ensuring you install version 5.2.17 or 6.0.8 or later.
Related vulnerabilities
Recent vulnerabilities recorded for django.