{"answers":{"affected":"2 open source packages ship an affected version, including @astrojs/cloudflare. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-58179 exists.","fix":"Upgrade @astrojs/cloudflare to 12.6.6 or later.","what":"CVE-2025-58179 is a high-severity server-side request forgery vulnerability in withastro astro, published on 4 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-58179 and fix it if it is affected.\n\nWhat it is: CVE-2025-58179 is a high-severity server-side request forgery vulnerability in withastro astro, published on 4 Sep 2025. 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-2025-58179 exists.\n\nAffected packages and fixed versions:\n- @astrojs/cloudflare (npm): affected from 11.0.3; fixed in 12.6.6\n- @astrojs/cloudflare (npm): affected from 11.0.3; fixed in 12.6.6\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-2025-58179/ (Markdown: https://insights.sbomify.com/CVE-2025-58179/index.md)","id":"CVE-2025-58179","markdown":"https://insights.sbomify.com/CVE-2025-58179/index.md","name":"CVE-2025-58179","record":{"aliases":["GHSA-qpr4-c339-7vq8"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Astro Cloudflare adapter","requires_auth":"none","summary":"Attackers can bypass domain restrictions to serve unauthorized content via the image endpoint in Astro's Cloudflare adapter when server output is enabled.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"\\@astrojs\\/cloudflare","vendor":"astro"}],"cvss":{"score":7.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"description":"Astro is a web framework for content-driven websites. Versions 11.0.3 through 12.6.5 are vulnerable to SSRF when using Astro's Cloudflare adapter. When configured with output: 'server' while using the default imageService: 'compile', the generated image optimization endpoint doesn't check the URLs it receives, allowing content from unauthorized third-party domains to be served. a A bug in impacted versions of the @astrojs/cloudflare adapter for deployment on Cloudflare’s infrastructure, allows an attacker to bypass the third-party domain restrictions and serve any content from the vulnerable origin. This issue is fixed in version 12.6.6.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2025-11-11","github_poc":1,"max_poc_stars":2,"metasploit":0,"nuclei":1,"refs":[{"date":"2025-11-11T08:05:36Z","kind":"github_poc","ref":"https://github.com/shitodcy/CVE-2025-58179-Check","stars":2,"title":null},{"date":null,"kind":"nuclei","ref":"http/cves/2025/CVE-2025-58179.yaml","stars":null,"title":"Astro Cloudflare Adapter - Server Side Request Forgery"}],"tier":"weaponised"},"has_fix":true,"headline":"Astro Cloudflare adapter is vulnerable to Server-Side Request Forgery via /_image endpoint","id":"CVE-2025-58179","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"ssrf","year":"2025"},"n_packages":2,"n_references":2,"next":{"headline":"OctoPrint is Vulnerable to RCE Attacks via Unsanitized Filename in File Upload","id":"CVE-2025-58180"},"packages":[{"ecosystem":"npm","fixed":["12.6.6"],"introduced":["11.0.3"],"last_affected":[],"package":"@astrojs/cloudflare","purl":null,"source":"GHSA-qpr4-c339-7vq8"},{"ecosystem":"npm","fixed":["12.6.6"],"introduced":["11.0.3"],"last_affected":[],"package":"@astrojs/cloudflare","purl":"pkg:npm/%40astrojs/cloudflare","source":"GHSA-qpr4-c339-7vq8"}],"prev":{"headline":"Command Injection via sonarqube-scan-action GitHub Action","id":"CVE-2025-58178"},"products":["astro"],"published":"2025-09-04","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)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-09-05","vendors":["withastro"]},"summary":"Attackers can bypass domain restrictions to serve unauthorized content via the image endpoint in Astro's Cloudflare adapter when server output is enabled.","url":"https://insights.sbomify.com/CVE-2025-58179/"}