{"answers":{"affected":"4 open source packages ship an affected version, including wrangler. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-7080 in the wild and no public exploit code.","fix":"Upgrade wrangler to a fixed version for your release line: 2.20.2 or 3.19.0.","what":"CVE-2023-7080 is a high-severity code injection vulnerability in Cloudflare wrangler, published on 29 Dec 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-7080 and fix it if it is affected.\n\nWhat it is: CVE-2023-7080 is a high-severity code injection vulnerability in Cloudflare wrangler, published on 29 Dec 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-7080 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- wrangler (npm): affected from 2.0.0; fixed in 2.20.2\n- wrangler (npm): affected from 2.0.0; fixed in 2.20.2\n- wrangler (npm): affected from 3.0.0; fixed in 3.19.0\n- wrangler (npm): affected from 3.0.0; fixed in 3.19.0\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-7080/ (Markdown: https://insights.sbomify.com/CVE-2023-7080/index.md)","id":"CVE-2023-7080","markdown":"https://insights.sbomify.com/CVE-2023-7080/index.md","name":"CVE-2023-7080","record":{"aliases":["GHSA-f8mp-x433-5wpf"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Cloudflare Workers CLI","requires_auth":"none","summary":"Attackers on the local network can execute arbitrary code in the wrangler dev sandbox due to an exposed V8 inspector server lacking proper header validation.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"cloudflare","cpe":[{"product":"wrangler","vendor":"cloudflare"}],"cvss":{"score":8.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"}],"description":"The V8 inspector intentionally allows arbitrary code execution within the Workers sandbox for debugging. wrangler dev would previously start an inspector server listening on all network interfaces. This would allow an attacker on the local network to connect to the inspector and run arbitrary code. Additionally, the inspector server did not validate Origin/Host headers, granting an attacker that can trick any user on the local network into opening a malicious website the ability to run code. If wrangler dev --remote was being used, an attacker could access production resources if they were bound to the worker.\n\nThis issue was fixed in wrangler@3.19.0 and wrangler@2.20.2. Whilst wrangler dev's inspector server listens on local interfaces by default as of wrangler@3.16.0, an  SSRF vulnerability in miniflare https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-fwvg-2739-22v7  (CVE-2023-7078) allowed access from the local network until wrangler@3.18.0. wrangler@3.19.0 and wrangler@2.20.2 introduced validation for the Origin/Host headers.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Arbitrary remote code execution within wrangler dev Workers sandbox","id":"CVE-2023-7080","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2023"},"n_packages":4,"n_references":5,"next":{"headline":"SQLi in PosTahsil's Online Payment System","id":"CVE-2023-7081"},"packages":[{"ecosystem":"npm","fixed":["2.20.2"],"introduced":["2.0.0"],"last_affected":[],"package":"wrangler","purl":null,"source":"GHSA-f8mp-x433-5wpf"},{"ecosystem":"npm","fixed":["2.20.2"],"introduced":["2.0.0"],"last_affected":[],"package":"wrangler","purl":"pkg:npm/wrangler","source":"GHSA-f8mp-x433-5wpf"},{"ecosystem":"npm","fixed":["3.19.0"],"introduced":["3.0.0"],"last_affected":[],"package":"wrangler","purl":null,"source":"GHSA-f8mp-x433-5wpf"},{"ecosystem":"npm","fixed":["3.19.0"],"introduced":["3.0.0"],"last_affected":[],"package":"wrangler","purl":"pkg:npm/wrangler","source":"GHSA-f8mp-x433-5wpf"}],"prev":{"headline":"Arbitrary remote file read in Wrangler dev server","id":"CVE-2023-7079"},"products":["wrangler"],"published":"2023-12-29","related":[{"cvss_score":7.7,"headline":"OS Command Injection in `wrangler pages deploy`","id":"CVE-2026-0933","kev_date_added":null,"published":"2026-01-20"},{"cvss_score":6.4,"headline":"Arbitrary remote file read in Wrangler dev server","id":"CVE-2023-7079","kev_date_added":null,"published":"2023-12-29"},{"cvss_score":5.7,"headline":"Directory traversal vulnerability in Cloudflare Wrangler","id":"CVE-2023-3348","kev_date_added":null,"published":"2023-08-03"}],"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-02","vendors":["Cloudflare"]},"summary":"Attackers on the local network can execute arbitrary code in the wrangler dev sandbox due to an exposed V8 inspector server lacking proper header validation.","url":"https://insights.sbomify.com/CVE-2023-7080/"}