Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2011-4940

15
FAUCET Score

CVE-2011-4940 describes a cross-site scripting (XSS) vulnerability in the SimpleHTTPServer module of Python versions prior to 2.5.6c1, 2.6.7 rc2, and 2.7.2. The flaw stems from the list_directory function failing to include a charset parameter in the Content-Type HTTP header, enabling remote attackers to leverage UTF-7 encoding for XSS attacks, specifically targeting Internet Explorer 7. This vulnerability has a low CVSS score of 2.6, indicating a network-based attack with high complexity and a potential impact limited to partial integrity. There is no evidence of active exploitation, publicly available exploit code (Metasploit, Nuclei, ExploitDB), or significant community discussion or media coverage.

Impacted Technologies

VendorProductVersion(s)CPE
<= 2.5.6CPE matchmatch criteria
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
0.9.0CPE matchmatch criteria
cpe:2.3:a:python:python:0.9.0:*:*:*:*:*:*:*
0.9.1CPE matchmatch criteria
cpe:2.3:a:python:python:0.9.1:*:*:*:*:*:*:*
1.2CPE matchmatch criteria
cpe:2.3:a:python:python:1.2:*:*:*:*:*:*:*
1.3CPE matchmatch criteria
cpe:2.3:a:python:python:1.3:*:*:*:*:*:*:*

CVSS Data

CVSS version used by this source: 2.0

2.6LOW

AV:N/AC:H/Au:N/C:N/I:P/A:N

Confidentiality Impact
NONE
Integrity Impact
PARTIAL
Availability Impact
NONE
Access Vector
NETWORK
Access Complexity
HIGH
Authentication
NONE
Exploitability Score
4.9
Impact Score
2.9
CvssVersion
2.0

Exploit Intelligence

EPSS Score
3.21%
Probability of exploitation in next 30 days
EPSS Percentile
86.9%
Percentile rank of EPSS score among Peer Group
As of 2026-07-27
Model: v2026.06.15
This CVE's current EPSS score of 0.0321 is in the 85th percentile among its peer group of 1,506 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.1 Bluesky, 0.0 Mastodon, and 0.3 GitHub mentions.

Media Mentions

No media coverage found for this CVE.

The average CVE in this peer group has 0.0 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (3)

redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 5Fixed in: python-0:2.4.3-46.el5_8.2
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 6Fixed in: python-0:2.6.6-29.el6_2.2
View patch
redhatend of lifevia redhat_api
Product: Red Hat Enterprise Linux 4Fixed in: python

Vendor Advisories (1)

redhatCVE-2011-4940Low

python: potential XSS in SimpleHTTPServer's list_directory()

Mar 8, 2011

References

bugs.python.org / issue11442
jvndb.jvn.jp / jvndb/JVNDB-2012-000063
jvn.jp / en/jp/JVN51176027/index.html
bugzilla.redhat.com / show_bug.cgi
secunia.com / advisories/50858
secunia.com / advisories/51024
secunia.com / advisories/51040
securityfocus.com / bid/54083
ubuntu.com / usn/USN-1592-1
ubuntu.com / usn/USN-1596-1
ubuntu.com / usn/USN-1613-1
ubuntu.com / usn/USN-1613-2