GHSA-vq3h-3q7v-9prw is a high-severity (CVSS 7.5) Improper Input Validation vulnerability in django. A fix is available for django — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
django🐍django🐍django🐍djangoReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
Description
The django.util.http.is_safe_url function in Django 1.4 before 1.4.13, 1.5 before 1.5.8, 1.6 before 1.6.5, and 1.7 before 1.7b4 does not properly validate URLs, which allows remote attackers to conduct open redirect attacks via a malformed URL, as demonstrated by "http:\\djangoproject.com."
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | django | ≥ 1.4&&< 1.4.13 | 1.4.13pip install --upgrade 'django==1.4.13' |
| 🐍PyPI | django | ≥ 1.5&&< 1.5.8 | 1.5.8pip install --upgrade 'django==1.5.8' |
| 🐍PyPI | django | ≥ 1.6&&< 1.6.5 | 1.6.5pip install --upgrade 'django==1.6.5' |
| 🐍PyPI | django | ≥ 1.7a1&&< 1.7b4 | 1.7b4pip install --upgrade 'django==1.7b4' |
Affected Products
ubuntu linuxcanonicaldebian linuxdebiandjangodjangoprojectopensuseopensuseDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for django, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update django to 1.4.13 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-vq3h-3q7v-9prw is resolved across your whole dependency graph.
Workarounds
Stop reflecting attacker-controlled destinations: resolve every redirect target against an allowlist of paths or hosts you own, prefer a server-side key over a full URL in the request, and reject absolute URLs entirely where the flow only ever needs a relative one.
Frequently Asked Questions
Is GHSA-vq3h-3q7v-9prw in your dependencies?
Find it across PyPI, including transitive dependencies.