py3-lxml — security advisory
A XSS vulnerability was discovered in python-lxml's clean module. The module's parser didn't properly imitate browsers, which caused different behaviors between the sanitizer and the user's page. A remote attacker could exploit this flaw to run arbitrary HTML/JS code.
- Products
- py3-lxml
- Affected versions
- Not specified
- Fixed versions
- 4.6.2-r0
- CVEs
- CVE-2020-27783
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 12:09 UTC · Revision 1
Source evidence
A XSS vulnerability was discovered in python-lxml's clean module. The module's parser didn't properly imitate browsers, which caused different behaviors between the sanitizer and the user's page. A remote attacker could exploit this flaw to run arbitrary HTML/JS code.
osv:ALPINE-CVE-2020-27783
py3-lxml
Fixed versions: 4.6.2-r0
py3-lxml
Fixed versions: 4.6.2-r0
py3-lxml
Fixed versions: 4.6.2-r0
py3-lxml
Fixed versions: 4.6.2-r0
py3-lxml
Fixed versions: 4.6.2-r0
py3-lxml
Fixed versions: 4.6.2-r0
py3-lxml
Fixed versions: 4.6.2-r0
py3-lxml
Fixed versions: 4.6.2-r0
py3-lxml
Fixed versions: 4.6.2-r0
Complete source record
{
"id": "97f82574fa0165ff960d0635f2414ac781b86cc4e3b0f13f872668a528092cca",
"url": "https://osv.dev/vulnerability/ALPINE-CVE-2020-27783",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ALPINE-CVE-2020-27783",
"summary": "A XSS vulnerability was discovered in python-lxml's clean module. The module's parser didn't properly imitate browsers, which caused different behaviors between the sanitizer and the user's page. A remote attacker could exploit this flaw to run arbitrary HTML/JS code.",
"evidence": "osv:ALPINE-CVE-2020-27783",
"products": [
{
"name": {
"value": "py3-lxml",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.6.2-r0",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "py3-lxml",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.6.2-r0",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "py3-lxml",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.6.2-r0",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "py3-lxml",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.6.2-r0",
"evidence": "/affected/3/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "py3-lxml",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.6.2-r0",
"evidence": "/affected/4/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "py3-lxml",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.6.2-r0",
"evidence": "/affected/5/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "py3-lxml",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.6.2-r0",
"evidence": "/affected/6/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "py3-lxml",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.6.2-r0",
"evidence": "/affected/7/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "py3-lxml",
"evidence": "/affected/8/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.6.2-r0",
"evidence": "/affected/8/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "ALPINE-CVE-2020-27783",
"aliases": [
"ALPINE-CVE-2020-27783"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.6.2-r0"
}
]
}
],
"package": {
"name": "py3-lxml",
"purl": "pkg:apk/alpine/py3-lxml?arch=source",
"ecosystem": "Alpine:v3.16"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-27783.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.6.2-r0"
}
]
}
],
"package": {
"name": "py3-lxml",
"purl": "pkg:apk/alpine/py3-lxml?arch=source",
"ecosystem": "Alpine:v3.17"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-27783.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.6.2-r0"
}
]
}
],
"package": {
"name": "py3-lxml",
"purl": "pkg:apk/alpine/py3-lxml?arch=source",
"ecosystem": "Alpine:v3.18"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-27783.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.6.2-r0"
}
]
}
],
"package": {
"name": "py3-lxml",
"purl": "pkg:apk/alpine/py3-lxml?arch=source",
"ecosystem": "Alpine:v3.19"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-27783.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.6.2-r0"
}
]
}
],
"package": {
"name": "py3-lxml",
"purl": "pkg:apk/alpine/py3-lxml?arch=source",
"ecosystem": "Alpine:v3.20"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-27783.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.6.2-r0"
}
]
}
],
"package": {
"name": "py3-lxml",
"purl": "pkg:apk/alpine/py3-lxml?arch=source",
"ecosystem": "Alpine:v3.21"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-27783.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.6.2-r0"
}
]
}
],
"package": {
"name": "py3-lxml",
"purl": "pkg:apk/alpine/py3-lxml?arch=source",
"ecosystem": "Alpine:v3.22"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-27783.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.6.2-r0"
}
]
}
],
"package": {
"name": "py3-lxml",
"purl": "pkg:apk/alpine/py3-lxml?arch=source",
"ecosystem": "Alpine:v3.23"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-27783.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.6.2-r0"
}
]
}
],
"package": {
"name": "py3-lxml",
"purl": "pkg:apk/alpine/py3-lxml?arch=source",
"ecosystem": "Alpine:v3.24"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-27783.json"
},
"ecosystem_specific": {}
}
],
"modified": "2026-10-26T11:17:55.163331099Z",
"provider": "osv",
"upstream": [
"CVE-2020-27783"
],
"references": [
"https://security.alpinelinux.org/vuln/CVE-2020-27783"
]
},
"related_cves": [
{
"value": "CVE-2020-27783",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 450582,
"published_at": "2020-12-03T17:15:13.177+00:00"
}