Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2020-28502
JavaScript vulnerability analysis and mitigation

Overview

CVE-2020-28502 is an arbitrary code injection vulnerability affecting the xmlhttprequest package before version 1.7.0 and all versions of xmlhttprequest-ssl. The vulnerability was discovered and disclosed on March 5, 2021, impacting Node.js applications using these packages (NVD, Snyk).

Technical details

The vulnerability occurs when requests are sent synchronously (async=False on xhr.open), where malicious user input flowing into xhr.send could result in arbitrary code being injected and executed. The vulnerability has a CVSS v3.1 base score of 8.1 (High), with attack vector being Network, attack complexity High, requiring no privileges or user interaction (Snyk).

Impact

When successfully exploited, this vulnerability can lead to a total loss of confidentiality, integrity, and availability of the affected system. The attacker could potentially execute arbitrary code, leading to complete system compromise. The high severity rating indicates serious potential consequences including unauthorized access to sensitive data and system manipulation (Snyk).

Exploitability

The vulnerability has a proof-of-concept exploit available. The exploit involves sending a malicious payload through a synchronous XMLHttpRequest that can result in arbitrary code execution. A sample proof of concept demonstrates the ability to write files to the system through malicious input injection (Snyk).

Mitigation and workarounds

The recommended mitigation is to upgrade xmlhttprequest to version 1.7.0 or higher, and xmlhttprequest-ssl to version 1.6.2 or higher. These versions contain the necessary security fixes to address the vulnerability (Snyk, Snyk SSL).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-54504HIGH8.8
  • JavaScript logoJavaScript
  • @andrea9293/mcp-documentation-server
NoYesSep 17, 2026
CVE-2026-77615HIGH8.7
  • JavaScript logoJavaScript
  • paella-core
NoYesSep 17, 2026
CVE-2026-91127HIGH8.2
  • JavaScript logoJavaScript
  • @file-viewer/doc
NoYesSep 18, 2026
CVE-2026-77301HIGH7.5
  • JavaScript logoJavaScript
  • openclaw
NoYesSep 18, 2026
CVE-2026-84992MEDIUM6.1
  • JavaScript logoJavaScript
  • md-editor-v3
NoYesSep 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management