Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. xmlhttprequest-ssl
  4. ›
  5. CVE-2020-28502

CVE-2020-28502: Improper Control of Generation of Code ('Code Injection')

May 4, 2021

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.

References

  • github.com/advisories/GHSA-h4j5-c7cj-74xg
  • github.com/driverdan/node-XMLHttpRequest/blob/1.6.0/lib/XMLHttpRequest.js
  • github.com/driverdan/node-XMLHttpRequest/blob/1.6.0/lib/XMLHttpRequest.js%23L480
  • github.com/driverdan/node-XMLHttpRequest/commit/983cfc244c7567ad6a59e366e55a8037e0497fe6
  • github.com/mjwwit/node-XMLHttpRequest/blob/ae38832a0f1347c5e96dda665402509a3458e302/lib/XMLHttpRequest.js
  • github.com/mjwwit/node-XMLHttpRequest/commit/ee1e81fc67729c7c0eba5537ed7fe1e30a6b3291
  • nvd.nist.gov/vuln/detail/CVE-2020-28502
  • snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1082937
  • snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1082938
  • snyk.io/vuln/SNYK-JS-XMLHTTPREQUEST-1082935
  • snyk.io/vuln/SNYK-JS-XMLHTTPREQUESTSSL-1082936

Code Behaviors & Features

Detect and mitigate CVE-2020-28502 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.6.2

Fixed versions

  • 1.6.2

Solution

Upgrade to version 1.6.2 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/xmlhttprequest-ssl/CVE-2020-28502.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:49 +0000.