{"answers":{"affected":"2 open source packages ship an affected version, including react-devtools-core. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-5654 exists.","fix":"Upgrade react-devtools-core to 4.28.4 or later.","what":"CVE-2023-5654 is a medium-severity server-side request forgery vulnerability in Meta React Developer Tools Extension, published on 19 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-5654 and fix it if it is affected.\n\nWhat it is: CVE-2023-5654 is a medium-severity server-side request forgery vulnerability in Meta React Developer Tools Extension, published on 19 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-5654 exists.\n\nAffected packages and fixed versions:\n- react-devtools-core (npm): affected all versions; fixed in 4.28.4\n- react-devtools-core (npm): affected all versions; fixed in 4.28.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-5654/ (Markdown: https://insights.sbomify.com/CVE-2023-5654/index.md)","id":"CVE-2023-5654","markdown":"https://insights.sbomify.com/CVE-2023-5654/index.md","name":"CVE-2023-5654","record":{"aliases":["GHSA-rxrc-rgv4-jpvx"],"analysis":{"component_type":"browser","fix_type":"patch","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"React Developer Tools","requires_auth":"none","summary":"A malicious webpage can force the React Developer Tools extension to fetch arbitrary URLs, enabling Server-Side Request Forgery attacks via the victim's browser.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"react-devtools","vendor":"facebook"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"},{"id":"CWE-285","name":"Improper Authorization"}],"description":"The React Developer Tools extension registers a message listener with window.addEventListener('message', \u003clistener\u003e) 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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"React Developer Tools extension Improper Authorization vulnerability","id":"CVE-2023-5654","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"ssrf","year":"2023"},"n_packages":2,"n_references":1,"next":{"headline":"WP MapIt \u003c= 2.7.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode","id":"CVE-2023-5658"},"packages":[{"ecosystem":"npm","fixed":["4.28.4"],"introduced":["0"],"last_affected":[],"package":"react-devtools-core","purl":null,"source":"GHSA-rxrc-rgv4-jpvx"},{"ecosystem":"npm","fixed":["4.28.4"],"introduced":["0"],"last_affected":[],"package":"react-devtools-core","purl":"pkg:npm/react-devtools-core","source":"GHSA-rxrc-rgv4-jpvx"}],"prev":{"headline":"WassUp Real Time Analytics \u003c= 1.9.4.5 - Unauthenticated Stored XSS","id":"CVE-2023-5653"},"products":["React Developer Tools Extension"],"published":"2023-10-19","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-12","vendors":["Meta"]},"summary":"A malicious webpage can force the React Developer Tools extension to fetch arbitrary URLs, enabling Server-Side Request Forgery attacks via the victim's browser.","url":"https://insights.sbomify.com/CVE-2023-5654/"}