Intel

AIKIDO-2026-197487

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

CVE-2026-87890Published Oct 8, 2026
October 8, 2026

53

CVE Score

Medium

Server-Side Request Forgery (SSRF)

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.

How do I fix this?

Upgrade the django library to the patch version.

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.

Package

Versions

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

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.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea