MediumGHSA-qrh7-x6fp-c2mpCVE-2013-1664PYSEC-2026-801
XML Entity Expansion (XEE) in Django
Published 17 May 2022 · Updated 7 Jul 2026
Is your project on an affected django?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
djangoPyPI
- Affected
- >=1.3.0 <1.3.6
- Fixed in
- 1.3.6
Update to the fixed version for your release line, for example:
pip install 'django>=1.3.6'djangoPyPI
- Affected
- >=1.4.0 <1.4.4
- Fixed in
- 1.4.4
Update to the fixed version for your release line, for example:
pip install 'django>=1.4.4'Details
The XML libraries for Python, as used in OpenStack Keystone Essex, Folsom, and Grizzly; Compute (Nova) Essex and Folsom; Cinder Folsom; Django; and possibly other products allow remote attackers to cause a denial of service (resource consumption and crash) via an XML Entity Expansion (XEE) attack.
Is GHSA-qrh7-x6fp-c2mp in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected django, and gives you the command that fixes it.
More advisories for django
- HighCVE-2026-15307Django GeoDjango spatial lookups allow file writes and outbound requests through GDAL raster parsing · 4 Aug 2026
- MediumCVE-2026-15830Django GeoDjango vulnerable to denial of service through deeply nested geometry collections · 4 Aug 2026
- MediumCVE-2026-53878Django: DomainNameValidator permits newline characters that may enable HTTP header injection · 7 Jul 2026
- MediumCVE-2026-53877 Django: GDALRaster may over-read heap memory when constructed from bytes · 7 Jul 2026
- LowCVE-2026-48588Django: cache middleware may expose private responses when unrelated request cookies are present · 7 Jul 2026
- LowCVE-2026-8404Django: UpdateCacheMiddleware may disclose cached responses due to case-sensitive Cache-Control handling · 3 Jun 2026
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2013-1664
- Linkgithub.com/django/django/commit/1c60d07ba23e0350351c278ad28d0bd5aa410b40
- Linkgithub.com/django/django/commit/d19a27066b2247102e65412aa66917aff0091112
- Linkbugs.launchpad.net/nova/+bug/1100282
- Packagegithub.com/django/django
- Linkblog.python.org/2013/02/announcing-defusedxml-fixes-for-xml.html
- Linkbugs.python.org/issue17239
- Linklists.openstack.org/pipermail/openstack-announce/2013-February/000078.html
- Linkrhn.redhat.com/errata/RHSA-2013-0657.html
- Linkrhn.redhat.com/errata/RHSA-2013-0658.html
- Linkrhn.redhat.com/errata/RHSA-2013-0670.html
- Linkubuntu.com/usn/usn-1757-1
- Linkwww.openwall.com/lists/oss-security/2013/02/19/2
- Linkwww.openwall.com/lists/oss-security/2013/02/19/4
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.