Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. react-devtools-core
  4. ›
  5. CVE-2023-5654

CVE-2023-5654: React Developer Tools extension Improper Authorization vulnerability

October 19, 2023 (updated September 12, 2024)

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.

References

  • gist.github.com/CalumHutton/1fb89b64409570a43f89d1fd3274b231
  • github.com/advisories/GHSA-rxrc-rgv4-jpvx
  • github.com/facebook/react
  • github.com/facebook/react/commit/09285d5a7f1c08bec09f44cec3d0518a603597fc
  • github.com/facebook/react/commit/94d5b5b2bf5204ebd289a113989c0e2c51b626ef
  • github.com/facebook/react/pull/27417
  • nvd.nist.gov/vuln/detail/CVE-2023-5654

Code Behaviors & Features

Detect and mitigate CVE-2023-5654 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 4.28.4

Fixed versions

  • 4.28.4

Solution

Upgrade to version 4.28.4 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

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

Source file

npm/react-devtools-core/CVE-2023-5654.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:32 +0000.