Vulnerability · Published Mar 5, 2021 · Assigned by snyk
CVE-2020-28502Arbitrary Code Injection
High 8.1
In plain English
A high-severity security flaw in xmlhttprequest. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 4.6% (higher than 92% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)8.1High
Exploit odds (30 days)4.6%top 8.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-xmlhttprequest | 1.8.0-1 | DEBIAN-CVE-2020-28502 |
| Debian:13 | node-xmlhttprequest | 1.8.0-1 | DEBIAN-CVE-2020-28502 |
| Debian:14 | node-xmlhttprequest | 1.8.0-1 | DEBIAN-CVE-2020-28502 |
| npm | xmlhttprequest | 1.7.0 | GHSA-h4j5-c7cj-74xg |
| npm | xmlhttprequest-ssl | 1.6.2 | GHSA-h4j5-c7cj-74xg |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | xmlhttprequest | unspecified – before 1.7.0 |
| n/a | xmlhttprequest-ssl | 0 – before unspecified |
References
- https://snyk.io/vuln/SNYK-JS-XMLHTTPREQUEST-1082935 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JS-XMLHTTPREQUESTSSL-1082936 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1082937 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1082938 x_refsource_MISC
- https://github.com/driverdan/node-XMLHttpRequest/blob/1.6.0/lib/XMLHttpRequest.js%23L480 x_refsource_MISC