Intel

AIKIDO-2026-197487

django is vulnerable to Server-Side Request Forgery (SSRF)

Server-Side Request Forgery (SSRF)CVE-2026-87890 Published 6 days ago

53

Medium Risk

This Affects:

PYTHONdjango
5.2 - 5.2.17
Fixed in 5.2.18
6.0 - 6.0.8
Fixed in 6.0.9
6.1 - 6.1.1
Fixed in 6.1.2
Are you affected? Scan for Free

TL;DR

Spatial lookups pass bytes values to GDALRaster from BaseSpatialField.get_prep_value in django/contrib/gis/db/models/fields.py. GDALRaster writes those bytes to GDAL's in-memory virtual filesystem and opens them, so a buffer containing a VRT document can reference an external raster source and cause the Django process to make a network request while preparing the lookup. GDALRaster.check_raster_lookup_value rejects dict and str inputs on releases that include that guard, and still allows bytes. The fix rejects bytes in the lookup guard and in the geometry fallback, while still accepting valid hexadecimal geometry bytes.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application passes user-controllable bytes into a GeoDjango spatial lookup that can reach GDALRaster.

Background info

django is vulnerable to Server-Side Request Forgery (SSRF) in versions 6.1 - 6.1.1, 6.0 - 6.0.8 and 5.2 - 5.2.17.

How to fix this

Upgrade the django library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform