Python SimpleHTTPServer vulnerable to cross-site scripting


The SimpleHTTPServer in Python contains a cross-site scripting vulnerability.

Keigo Yamazaki of Little eArth Corporation Co., Ltd. reported this vulnerability to IPA.
JPCERT/CC coordinated with the developer under Information Security Early Warning Partnership.
CVSS Severity (What is CVSS?)

CVSS V2 Severity:
Base Metrics 2.6 (Low) [IPA Score]
  • Access Vector: Network
  • Access Complexity: High
  • Authentication: None
  • Confidentiality Impact: None
  • Integrity Impact: Partial
  • Availability Impact: None
Affected Products

Python Software Foundation
  • Python versions prior to 2.7.2
  • Python versions prior to 2.6.7 rc2
  • Python versions prior to 2.5.6c1
  • VMware ESX 3.5
  • VMware ESX 4.0
  • VMware ESX 4.1


An arbitrary script may be executed on the user's Internet Explorer.

According to the developer, this issue exists only when using Internet Explorer 7.

[Update the software]
Update to the latest version according to the information provided by the developer.
Vendor Information

Python Software Foundation VMware
CWE (What is CWE?)

  1. Cross-site Scripting(CWE-79) [IPA Evaluation]
CVE (What is CVE?)

  1. CVE-2011-4940

  1. JVN : JVN#51176027
  2. National Vulnerability Database (NVD) : CVE-2011-4940
Revision History

  • [2012/06/19]
      Web page was published
      Affected Products : Products were added (VMware (VMSA-2012-0016))
      Vendor Information : Content was added (VMware (VMSA-2012-0016))