CVE-2011-0697: XSS

Published Feb 9, 2011
·
Updated

Cross-site scripting (XSS) vulnerability in Django 1.1.x before 1.1.4 and 1.2.x before 1.2.5 might allow remote attackers to inject arbitrary web script or HTML via a filename associated with a file upload.

Other sources

http://www.djangoproject.com/weblog/2011/feb/08/security/

Django's form system includes form fields and widgets for performing file uploads; in rendering these fields, the name of the file currently stored in the field is displayed. In the process of rendering, the filename is displayed without being escaped, as reported by Trac user "e.generalov".

In many cases this does not result in a cross-site-scripting vulnerability, as file-storage backends can and are encouraged to (and the default backends provided with Django do) sanitize the supplied filename according to their requirements. However, the risk of a vulnerability appearing in a backend which does not sanitize, or which performs insufficient sanitization, is such that Django will now automatically escape filenames in form rendering.

Red Hat

Affected Software

11 affected componentsFixes available
pip/Django>=1.2<1.2.5
1.2.5
pip/Django>=1.1<1.1.4
1.1.4
djangoproject Django=1.1.2
djangoproject Django=1.1
djangoproject Django=1.1.3
djangoproject Django=1.1.0
djangoproject Django=1.2.1
djangoproject Django=1.2.4
djangoproject Django=1.2.3
djangoproject Django=1.2
djangoproject Django=1.2.2

Event History

Feb 9, 2011
Data Sourced
via Red Hat·04:08 PM
DescriptionSeverityAffected Software
Feb 14, 2011
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
Description
Jul 23, 2018
Advisory Published
via GitHub·09:01 PM

Frequently Asked Questions

1

What is the severity of CVE-2011-0697?

The severity of CVE-2011-0697 is classified as medium due to potential exposure of sensitive file information.

2

How do I fix CVE-2011-0697?

To fix CVE-2011-0697, upgrade Django to version 1.2.5 or later, or 1.1.4 or later.

3

What versions of Django are affected by CVE-2011-0697?

CVE-2011-0697 affects Django versions 1.1 through 1.2.4 inclusively.

4

What type of vulnerability is CVE-2011-0697?

CVE-2011-0697 is a flaw in the file upload handling within Django's form system.

5

Is there a workaround for CVE-2011-0697?

There is no well-documented workaround for CVE-2011-0697 other than upgrading to a fixed version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203