CVE-2011-4940 affecting package python-py 1.11.0-1
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.
- Products
- python-py
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2011-4940
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 17:27 UTC · Revision 1
Source evidence
CVE-2011-4940 affecting package python-py 1.11.0-1
core-osv · Original sourcePublished 27 Jun 2012, 10:18 UTC
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.
osv:AZL-109590
python-py
Fixed versions: Not specified
Complete source record
{
"id": "ec8d2f93e70420befac360f35db48ca14e0228041423aa7fb2853118bae54b21",
"url": "https://osv.dev/vulnerability/AZL-109590",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2011-4940 affecting package python-py 1.11.0-1",
"summary": "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.",
"evidence": "osv:AZL-109590",
"products": [
{
"name": {
"value": "python-py",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "AZL-109590",
"aliases": [
"AZL-109590"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"last_affected": "1.11.0-1"
}
]
}
],
"package": {
"name": "python-py",
"purl": "pkg:rpm/azure-linux/python-py",
"ecosystem": "Azure Linux:3"
},
"database_specific": {
"source": "https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-109590.json"
}
}
],
"modified": "2026-10-27T05:36:16Z",
"provider": "osv",
"upstream": [
"CVE-2011-4940"
],
"references": [
"https://nvd.nist.gov/vuln/detail/CVE-2011-4940"
]
},
"related_cves": [
{
"value": "CVE-2011-4940",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 460490,
"published_at": "2012-06-27T10:18:36+00:00"
}