CVE-2020-28502
Arbitrary Code Injection
Reported by snyk · Published March 5, 2021
xmlhttprequest-ssl is fixed in 1.6.2 (npm)
This affects the package xmlhttprequest before 1.7.0; all versions of package xmlhttprequest-ssl. Provided requests are sent synchronously (async=False on xhr.open), malicious user input flowing into xhr.send could result in arbitrary code being injected and run.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| xmlhttprequest-ssl | npm | 1.6.2 |
| xmlhttprequest | npm | 1.7.0 |
| xmlhttprequest-ssl | n/a | unspecified |
| xmlhttprequest | n/a | 1.7.0 |
| xmlhttprequest | xmlhttprequest_project | 1.7.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | xmlhttprequest | unspecified |
| n/a | xmlhttprequest-ssl | 0 |
| n/a | xmlhttprequest-ssl | 0 |
| n/a | xmlhttprequest | * |
| npm | xmlhttprequest-ssl | 0 |
| npm | xmlhttprequest | 0 |
Timeline
- Mar 5, 2021 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Oct 15, 2024 CVE Updated
- Mar 9, 2026 Security Advisory
- Sep 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-28502
vulnetix vdb fixes CVE-2020-28502
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-28502/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- https://github.com/driverdan/node-XMLHttpRequest/commit/983cfc244c7567ad6a59e366e55a8037e0497fe6 patch
- https://github.com/driverdan/node-XMLHttpRequest/blob/1.6.0/lib/XMLHttpRequest.js#L480 url
- https://github.com/mjwwit/node-XMLHttpRequest/blob/ae38832a0f1347c5e96dda665402509a3458e302/lib/XMLHttpRequest.js#L531 url
- https://github.com/mjwwit/node-XMLHttpRequest/commit/ee1e81fc67729c7c0eba5537ed7fe1e30a6b3291 patch
- https://github.com/advisories/GHSA-h4j5-c7cj-74xg advisory
- https://nvd.nist.gov/vuln/detail/CVE-2020-28502 advisory