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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | xmlhttprequest | unspecified – < 1.7.0 | 1.7.0 |
| — | xmlhttprequest-ssl | < unspecified | unspecified |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-xmlhttprequest | 1.8.0-1 | — |
| Debian 13 | node-xmlhttprequest | 1.8.0-1 | — |
| Debian 12 | node-xmlhttprequest | 1.8.0-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | node-xmlhttprequest-ssl | No fix yet | — |
| Ubuntu 18.04 LTS | node-xmlhttprequest +1 | No fix yet | — |
| Ubuntu 16.04 LTS | node-xmlhttprequest | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
s-index/CVE-2020-28502 ★ 3 · May 12, 2021
CVE-2020-28502 node-XMLHttpRequest RCE
-
dpredrag/CVE-2020-28502 ★ 0 · Jul 28, 2021
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | xmlhttprequest | < 1.7.0 | 1.7.0 | GHSA-h4j5-c7cj-74xg |
| npm | xmlhttprequest-ssl | < 1.6.2 | 1.6.2 | GHSA-h4j5-c7cj-74xg |
Advisories 1
- WID-SEC-2024-1591 Juniper JUNOS: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 11, 2024
References
- https://snyk.io/vuln/SNYK-JS-XMLHTTPREQUEST-1082935
- https://snyk.io/vuln/SNYK-JS-XMLHTTPREQUESTSSL-1082936
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1082937
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1082938
- https://github.com/driverdan/node-XMLHttpRequest/blob/1.6.0/lib/XMLHttpRequest.js%23L480