CVE-2011-0696: Django Cross-site Request Forgery Vulnerability

HIGH
Advisory Identifier: GHSA-5j2h-h5hg-3wf8
CVSS 7.5
CWE-352
Published
Advisory Summary

CVE-2011-0696 is a HIGH (CVSS 7.5) cross-site request forgery vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Django libraries in the PyPI ecosystem. The issue involves cross-site request forgery in django. Remediation is available by upgrading affected packages to version 1.1.4, 1.2.5.

CVE-2011-0696 at a Glance

CVE Identifier CVE-2011-0696
GHSA Identifier GHSA-5j2h-h5hg-3wf8
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Django
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2011-0696

To remediate this vulnerability, upgrade all affected Django dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Django fixed: 1.1.4
pip install Django>=1.1.4
Django fixed: 1.2.5
pip install Django>=1.2.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show Django

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2011-0696, inspect your installed packages using pip:

pip show Django

Analyze the terminal output to locate any version of Django in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.4), your application is affected.

Note: The pip show Django command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Django, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Django 1.1.x before 1.1.4 and 1.2.x before 1.2.5 does not properly validate HTTP requests that contain an X-Requested-With header, which makes it easier for remote attackers to conduct cross-site request forgery (CSRF) attacks via forged AJAX requests that leverage a "combination of browser plugins and redirects," a related issue to CVE-2011-0447.

CVE-2011-0696 Affected Django Versions

2 component(s)
Fixed Versions:
1.1.41.2.5
Product / Package Ecosystem Affected Versions Fixed Version
Django
PyPI
≥ 1.1
< 1.1.4
1.1.4
Django
PyPI
≥ 1.2
< 1.2.5
1.2.5

References

NVD — CVE-2011-0696 NVD
https://nvd.nist.gov/vuln/detail/CVE-2011-0696
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/408c5c873ce1437c7eee9544ff279ecbad7e150a
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/818e70344e7193f6ebc73c82ed574e6ce3c91afc
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=676357
GitHub Advisory / Wiki ADVISORY
https://github.com/advisories/GHSA-5j2h-h5hg-3wf8
Django Source Repository REPOSITORY
https://github.com/django/django
Django Source Repository REPOSITORY
https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2011-10.yaml
Django Source Repository REPOSITORY
https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2011-30.yaml
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2011-February/054207.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2011-February/054208.html
Django Security Information SECURITY
http://openwall.com/lists/oss-security/2011/02/09/6
secunia.com/advisories/43230 WEB
http://secunia.com/advisories/43230
secunia.com/advisories/43297 WEB
http://secunia.com/advisories/43297
secunia.com/advisories/43382 WEB
http://secunia.com/advisories/43382
secunia.com/advisories/43426 WEB
http://secunia.com/advisories/43426
Django Security Information SECURITY
http://www.debian.org/security/2011/dsa-2163
Django Security Information SECURITY
http://www.djangoproject.com/weblog/2011/feb/08/security
Django Security Information SECURITY
http://www.mandriva.com/security/advisories?name=MDVSA-2011:031
Django Security Information SECURITY
http://www.securityfocus.com/bid/46296
www.ubuntu.com/usn/usn-1066-1 WEB
http://www.ubuntu.com/usn/USN-1066-1
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2011/0372
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2011/0388
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2011/0429
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2011/0439
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2011/0441

Frequently Asked Questions

What is CVE-2011-0696?
CVE-2011-0696 is a security vulnerability in Django involving Cross-site request forgery in Django under CWE-352: Cross-Site Request Forgery (CSRF).
Which Django versions are affected?
Affected versions include releases prior to 1.1.4, 1.2.5 across affected packages: Django.
What version fixes CVE-2011-0696?
Upgrading to 1.1.4, 1.2.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Django affected?
Yes, Django is affected in releases prior to 1.1.4, 1.2.5. Upgrade your dependency to 1.1.4, 1.2.5 or later.
What is the CVSS score of CVE-2011-0696?
CVE-2011-0696 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2011-0696?
CVE-2011-0696 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check PyPI dependencies for CVE-2011-0696?
Run the dependency tree command: 'pip show Django'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5j2h-h5hg-3wf8",
  "modified" : "2026-05-19T16:12:12Z",
  "published" : "2018-07-23T19:51:10Z",
  "aliases" : [ "CVE-2011-0696" ],
  "summary" : "Cross-site request forgery in Django",
  "details" : "Django 1.1.x before 1.1.4 and 1.2.x before 1.2.5 does not properly validate HTTP requests that contain an X-Requested-With header, which makes it easier for remote attackers to conduct cross-site request forgery (CSRF) attacks via forged AJAX requests that leverage a \"combination of browser plugins and redirects,\" a related issue to CVE-2011-0447.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Django"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.1"
      }, {
        "fixed" : "1.1.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Django"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.2"
      }, {
        "fixed" : "1.2.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-0696"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/408c5c873ce1437c7eee9544ff279ecbad7e150a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/818e70344e7193f6ebc73c82ed574e6ce3c91afc"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=676357"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-5j2h-h5hg-3wf8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/django/django"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2011-10.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2011-30.yaml"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2011-February/054207.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2011-February/054208.html"
  }, {
    "type" : "WEB",
    "url" : "http://openwall.com/lists/oss-security/2011/02/09/6"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/43230"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/43297"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/43382"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/43426"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2011/dsa-2163"
  }, {
    "type" : "WEB",
    "url" : "http://www.djangoproject.com/weblog/2011/feb/08/security"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDVSA-2011:031"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/46296"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-1066-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2011/0372"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2011/0388"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2011/0429"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2011/0439"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2011/0441"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:16:24Z",
    "nvd_published_at" : "2011-02-14T21:00:03Z"
  }
}