{"cve":"CVE-2011-4940","nvd":{"published":"2012-06-27T10:18:36.433","modified":"2026-06-16T23:35:39.720","status":"Modified","description":"The list_directory function in Lib/SimpleHTTPServer.py in SimpleHTTPServer in Python before 2.5.6c1, 2.6.x before 2.6.7 rc2, and 2.7.x before 2.7.2 does not place a charset parameter in the Content-Type HTTP header, which makes it easier for remote attackers to conduct cross-site scripting (XSS) attacks against Internet Explorer 7 via UTF-7 encoding.","cvss_v4":null,"cvss_v3":null,"cwes":["CWE-79"],"references":["http://bugs.python.org/issue11442","http://jvn.jp/en/jp/JVN51176027/index.html","http://jvndb.jvn.jp/jvndb/JVNDB-2012-000063","http://secunia.com/advisories/50858","http://secunia.com/advisories/51024"],"products":["python:python"],"source":"nvd","synced_at":"2026-10-19T20:24:00.973572543+00:00"},"epss":{"cve":"CVE-2011-4940","score":0.03177,"percentile":0.88054,"date":"2026-10-31"},"kev":null,"osv":[],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}