KeygraphLabs · CVE MCP

CVE-2017-7233 · mitre

CVE-2017-7233

Django 1.10 before 1.10.7, 1.9 before 1.9.13, and 1.8 before 1.8.18 relies on user input in some cases to redirect the user to an "on success" URL. The security check for these redirects (namely ``django.utils.http.is_safe_url()``) considered some numeric URLs "safe" when they shouldn't be, aka an open redirect vulnerability. Also, if a developer relies on ``is_safe_url()`` to provide safe redirect targets and puts such a URL into a link, they could suffer from an XSS attack.

Published 2017-04-04, last changed 2026-06-17. Weakness: CWE-601.

CVSS
6.1
medium, from NVD
EPSS
2.40%
percentile 84.6%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: django 1.8.18, 1.9.13, 1.10.7 (PyPI) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Where the flaw is in the code

Fixed in django/django by 254326cb36, 8339277518, f824655bc2. Functions changed by the fix: is_safe_url, _urlparse, _urlsplit, _is_safe_url. Regression tests: tests/utils_tests/test_http.py. Confidence: verified (a record names this commit as the fix, and it changed these functions).

Timeline

2017-04-04Published
2017-04-04Package advisory PYSEC-2017-9
2019-01-04Package advisory GHSA-37hp-765x-j95x
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 2.40%
2026-12-02Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-37hp-765x-j95xdjango (PyPI)1.10.7
GHSA-37hp-765x-j95xdjango (PyPI)1.9.13
GHSA-37hp-765x-j95xdjango (PyPI)1.8.18
PYSEC-2017-9django (PyPI)1.10.7, 1.9.13, 1.8.18

Also known as: GHSA-37hp-765x-j95x, PYSEC-2017-9

Related

CVEPublishedCVSSSummary
CVE-2026-158302026-08-046.9Potential denial-of-service vulnerability via nested geometry collections
CVE-2026-153072026-08-048.7Server-side file-write and request forgery via spatial lookups
CVE-2026-538782026-07-075.3Header injection possibility since DomainNameValidator accepted newlines in input
CVE-2026-538772026-07-076.3Heap buffer over-read in GDALRaster
CVE-2026-485882026-07-075.3Potential exposure of private data via cached Set-Cookie response
CVE-2026-84042026-06-035.3Potential exposure of private data via case-sensitive Cache-Control directives in UpdateCacheMiddleware
CVE-2026-76662026-06-032.3Potential unencrypted email transmission via STARTTLS in the SMTP backend
CVE-2026-68732026-06-034.3Signed cookie salt namespace collision in django.http.HttpRequest.get_signed_cookie

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2017-7233, or call /api/v1/vulnerabilities/CVE-2017-7233. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org