GitHub Advisoryadvisory · npm

GHSA-rxrc-rgv4-jpvx React Developer Tools extension Improper Authorization vulnerability

MEDIUM Published 2023-10-19 Modified 2024-09-12 Official page ↗
Aliases
CVE-2023-5654
Ecosystem
npm
Packages
react-devtools-core
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Weaknesses
CWE-116, CWE-285
Reviewed
2023-10-20

Affected packages

• npm react-devtools-core: < 4.28.4 → fixed in 4.28.4

Description

The React Developer Tools extension registers a message listener with window.addEventListener('message', ) in a content script that is accessible to any webpage that is active in the browser. Within the listener is code that requests a URL derived from the received message via fetch(). The URL is not validated or sanitised before it is fetched, thus allowing a malicious web page to arbitrarily fetch URL’s via the victim's browser.

Related

Alias · CVE (1)

  • CVE-2023-5654 The React Developer Tools extension registers a message listener with window.addEventListener('message', <listener>) in a content script… vulnerability

Weakness · CWE (2)

  • CWE-116 Improper Encoding or Escaping of Output weakness
  • CWE-285 Improper Authorization weakness

References