Vulnerabilities · 2023 · Facebook
CVE-2023-5654
Facebook React-devtools vulnerability
The React Developer Tools extension registers a message listener with window.addEventListener('message', <listener>) 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.
Affected products
React-devtools. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Facebook React-devtools runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- gist.github.com/CalumHutton/1fb89b64409570a43f89d1fd3274b231 · Patch
- nvd.nist.gov/vuln/detail/CVE-2023-5654
- github.com/facebook/react/pull/27417
- github.com/facebook/react/commit/09285d5a7f1c08bec09f44cec3d0518a603597fc
- github.com/facebook/react/commit/94d5b5b2bf5204ebd289a113989c0e2c51b626ef
- github.com/advisories/GHSA-rxrc-rgv4-jpvx
- nvd.nist.gov/vuln/detail/CVE-2023-5654
- cve.org/CVERecord?id=CVE-2023-5654
More vulnerabilities in Facebook products
CVE-2025-67779CVE-2025-55184CVE-2025-55183CVE-2025-55182CVE-2025-55181CVE-2024-23347CVE-2023-49062CVE-2023-45239All 124
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.