# CVE-2020-28502: Arbitrary Code Injection

- Severity: High 8.1 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.63%, higher than 91% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 4 links below, marked "exploit"
- Published: 2021-03-05T17:25:16.408Z
- Modified: 2026-06-17T03:10:33.037Z
- Also known as: GHSA-h4j5-c7cj-74xg
- Weaknesses: CWE-94
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- xmlhttprequest: from unspecified before 1.7.0
- xmlhttprequest-ssl: before unspecified
- xmlhttprequest (npm): before 1.7.0
- xmlhttprequest-ssl (npm): before 1.6.2
- xmlhttprequest_project xmlhttprequest: before 1.7.0

## Every score

- snyk: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-XMLHTTPREQUEST-1082935> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JS-XMLHTTPREQUESTSSL-1082936> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1082937> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1082938> (exploit, third-party-advisory, web)
- <https://github.com/driverdan/node-XMLHttpRequest/blob/1.6.0/lib/XMLHttpRequest.js%23L480> (broken-link, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-28502> (advisory)
- <https://github.com/driverdan/node-XMLHttpRequest/commit/983cfc244c7567ad6a59e366e55a8037e0497fe6> (web)
- <https://github.com/mjwwit/node-XMLHttpRequest/commit/ee1e81fc67729c7c0eba5537ed7fe1e30a6b3291> (web)
- <https://github.com/driverdan/node-XMLHttpRequest/blob/1.6.0/lib/XMLHttpRequest.js#L480> (web)
- <https://github.com/mjwwit/node-XMLHttpRequest/blob/ae38832a0f1347c5e96dda665402509a3458e302/lib/XMLHttpRequest.js#L531> (web)

## Sources

- CVE List: [CVE-2020-28502](https://www.cve.org/CVERecord?id=CVE-2020-28502), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-h4j5-c7cj-74xg](https://github.com/advisories/GHSA-h4j5-c7cj-74xg), CC-BY-4.0, modified 2025-01-14
- NVD: [CVE-2020-28502](https://nvd.nist.gov/vuln/detail/CVE-2020-28502), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-28502 · Whole record: https://cve.day/CVE-2020-28502.json · Rebuilt by cve.day 2026-11-25T22:57:57.535Z
