Cross-site scripting via protocol-relative image URL bypass
Published Aug 19, 2025 · Updated Aug 19, 2025
Cross-site scripting in Astro before 4.16.18 and 5.0.0-alpha.0 through 5.13.1 allows remote attackers to run script via crafted SVG links. The _image endpoint's isRemotePath check treats protocol-relative href values beginning with // as local paths, bypassing configured image domain and remote-pattern allowlists. On-demand rendering must be enabled, and script execution requires a victim to follow an attacker-created same-origin URL that returns a malicious SVG.
Summary
What happened
Cross-site scripting in Astro before 4.16.18 and 5.0.0-alpha.0 through 5.13.1 allows remote attackers to run script via crafted SVG links. The _image endpoint's isRemotePath check treats protocol-relative href values beginning with // as local paths, bypassing configured image domain and remote-pattern allowlists. On-demand rendering must be enabled, and script execution requires a victim to follow an attacker-created same-origin URL that returns a malicious SVG.
The record
- CVE
- CVE-2025-55303
- Published
- Aug 19, 2025
- Updated
- Aug 19, 2025
- Vendor
- Astro Technology Company
- Product
- Astro
- Classifications
- CWE-79, CWE-115, T1204.001
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 19, 2025CVE publishedPublication date reported by the CVE source.
- Aug 19, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 4.16.18
- Affected versionversion=>= 5.0.0-alpha.0, < 5.13.2
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Upstream protocol-relative image URL proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo