{
  "id": "CVE-2025-58179",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-58179",
  "published_at": "2025-09-04T23:36:44.393Z",
  "title": "Astro Cloudflare adapter is vulnerable to Server-Side Request Forgery via /_image endpoint",
  "vendor": "withastro",
  "product": "astro",
  "cvss": {
    "score": 7.2,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2025-09-12T01:55:04Z",
    "first_seen_at": "2026-11-14T14:50:35.824Z",
    "days_after_publication": 7.1,
    "source": "nuclei",
    "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-58179.yaml"
  },
  "poc_repo_count": 1,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-918",
  "cpes": [
    "cpe:2.3:a:astro:\\@astrojs\\/cloudflare:*:*:*:*:*:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.2,
    "nvd": 6.5
  },
  "repos": [
    {
      "repo": "shitodcy/CVE-2025-58179-Check",
      "url": "https://github.com/shitodcy/CVE-2025-58179-Check",
      "created_at": "2025-11-11T08:05:36Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 2,
      "is_poc": "yes",
      "kind": "scanner",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-04-04T03:49:30Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "withastro",
        "product": "astro",
        "ranges": [
          "\u003e= 11.0.3, \u003c 12.6.6"
        ],
        "fixed_in": [
          "12.6.6"
        ]
      }
    ],
    "upgrade": [
      "Upgrade astro to 12.6.6 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/withastro/astro/security/advisories/GHSA-qpr4-c339-7vq8"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/withastro/astro/commit/9ecf3598e2b29dd74614328fde3047ea90e67252"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-58179.yaml",
      "source": "nuclei",
      "title": "nuclei template: Astro Cloudflare Adapter - Server Side Request Forgery",
      "published_at": "2025-09-12T01:55:04Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/_image",
      "query_markers": [
        "href="
      ],
      "ports": [
        80,
        443
      ],
      "user_agents": [
        "body_markers_placeholder"
      ],
      "protocol": "https",
      "repos": [
        "shitodcy/CVE-2025-58179-Check"
      ],
      "repo_count": 1,
      "confidence": 0.6,
      "evidence": [
        "shitodcy/CVE-2025-58179-Check/CVE-2025-58179-Check.py:32",
        "shitodcy/CVE-2025-58179-Check/CVE-2025-58179-Check.py:47",
        "shitodcy/CVE-2025-58179-Check/README.md:57"
      ]
    }
  ],
  "rules": []
}
