CVE-2025-55303
published medium CVSS 4.0 · 6.9Unauthorized third-party images in Astro’s _image endpoint
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| withastro | — | astro>= 5.0.0-alpha.0, < 5.13.2 · < 4.16.18 | Affected | Not stated | GitHub_M |
Description
Astro is a web framework for content-driven websites. In versions of astro before 5.13.2 and 4.16.18, the image optimization endpoint in projects deployed with on-demand rendering allows images from unauthorized third-party domains to be served. On-demand rendered sites built with Astro include an /_image endpoint which returns optimized versions of images. A bug in impacted versions of astro allows an attacker to bypass the third-party domain restrictions by using a protocol-relative URL as the image source, e.g. /_image?href=//example.com/image.png. This vulnerability is fixed in 5.13.2 and 4.16.18.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| withastro | astro | >= 5.0.0-alpha.0, < 5.13.2 (affected)< 4.16.18 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CWE-115 CWE-115: Misinterpretation of Input
References
2Provider assertions
2GitHub_M · cna
Unauthorized third-party images in Astro’s _image endpoint
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 6030c77dc08f2995c2c6c6f82645a8d74c54418ae336dc09edc0b1e540131fcb
- Ingested
- 23 Sep 2026, 08:53:29 UTC
- Source record
- Official CVE record