{"id":"CVE-2020-28502","published":"2021-03-05T17:25:16Z","modified":"2024-09-16T22:55:22Z","title":"Arbitrary Code Injection","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04629,"percentile":0.91921,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-XMLHTTPREQUEST-1082935","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JS-XMLHTTPREQUESTSSL-1082936","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1082937","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1082938","tags":["x_refsource_MISC"]},{"url":"https://github.com/driverdan/node-XMLHttpRequest/blob/1.6.0/lib/XMLHttpRequest.js%23L480","tags":["x_refsource_MISC"]}],"priority":{"score":29.1,"factors":[{"name":"EPSS percentile","points":18.38},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.67}]},"exploitSources":{"pocGithub":{"count":1,"skipped":1,"earliest":"2021-05-12","earliestUrl":"https://github.com/s-index/CVE-2020-28502","repos":[{"name":"s-index/CVE-2020-28502","url":"https://github.com/s-index/CVE-2020-28502","stars":3,"created":"2021-05-12"}]},"first":{"date":"2021-05-12","source":"PoC-in-GitHub","url":"https://github.com/s-index/CVE-2020-28502"},"provenance":"source"},"affectedVersions":[{"vendor":"n/a","product":"xmlhttprequest","versions":[">= unspecified, < 1.7.0"]},{"vendor":"n/a","product":"xmlhttprequest-ssl","versions":["< unspecified"]}],"affected":[{"ecosystem":"npm","package":"xmlhttprequest","vulnerableRanges":["<1.7.0"],"patched":["1.7.0"],"from":["GHSA-h4j5-c7cj-74xg"],"provenance":"source"},{"ecosystem":"npm","package":"xmlhttprequest-ssl","vulnerableRanges":["<1.6.2"],"patched":["1.6.2"],"from":["GHSA-h4j5-c7cj-74xg"],"provenance":"source"}],"summary":{"text":"The flaw is an arbitrary code injection issue in the xmlhttprequest package (versions before 1.7.0) and the xmlhttprequest-ssl package (all versions). An attacker can inject and run arbitrary code when malicious user input flows into xhr.send in a request made synchronously (async=False on xhr.open), and the attack requires no privileges or user interaction, though it is noted as having high complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:37:40Z"},"euvd":{"id":"EUVD-2021-1094","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-xmlhttprequest-cve-2020-28502","children":[{"from":"CVE-2020-28502","to":"CVE-2021-31597","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/XMLHttpRequest.js"],"commits":["https://github.com/mjwwit/node-XMLHttpRequest/commit/ee1e81fc67729c7c0eba5537ed7fe1e30a6b3291","https://github.com/mjwwit/node-XMLHttpRequest/commit/bf53329b61ca6afc5d28f6b8d2dc2e3ca740a9b2"],"basis":"shared function","functions":["XMLHttpRequest"]}]}]}}