Reflected XSS via unescaped corrected pathname
Published Nov 13, 2025 · Updated Nov 13, 2025
Reflected XSS in Astro 5.2.0 through 5.15.5 allows remote attackers to execute JavaScript in a developer's browser via crafted URLs. The trailingSlashMismatchTemplate derives corrected from the user-controlled pathname and inserts it unescaped into an href attribute and link text. Exploitation requires trailingSlash always or never, a running development server, and a developer opening the crafted link; production builds are unaffected.
Summary
What happened
Reflected XSS in Astro 5.2.0 through 5.15.5 allows remote attackers to execute JavaScript in a developer's browser via crafted URLs. The trailingSlashMismatchTemplate derives corrected from the user-controlled pathname and inserts it unescaped into an href attribute and link text. Exploitation requires trailingSlash always or never, a running development server, and a developer opening the crafted link; production builds are unaffected.
The record
- CVE
- CVE-2025-64745
- Published
- Nov 13, 2025
- Updated
- Nov 13, 2025
- Vendor
- Astro Technology Company
- Product
- Astro
- Classifications
- CWE-79, T1204.001, T1566.002
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Nov 13, 2025CVE publishedPublication date reported by the CVE source.
- Nov 13, 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=>= 5.2.0, < 5.15.6
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 reflected-XSS 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