CVE-2025-64745: withastro astro · Cross-site Scripting
Affects withastro astroSource CVE Database V5
Not known to be exploited · CVSS 2.7 Low : upgrade to 5.15.6 when convenient.
Data as of 26 Oct 2026, 15:59 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 17% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.15.6
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 13 Nov 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade withastro astro to 5.15.6.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
npmastropkg:npm/astroOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2025-64745, European organizations should take the following specific actions: 1) Upgrade all Astro development environments to version 5.15.6 or later, where the vulnerability is fixed. 2) Enforce strict policies to avoid using the development server in untrusted or public networks, limiting exposure to potentially malicious URLs. 3) Educate developers about the risks of clicking on unsolicited or suspicious links, especially those targeting development tools. 4) Implement network-level controls such as web proxies or URL filtering to block known malicious URLs or suspicious traffic patterns targeting development servers. 5) Use browser security features like Content Security Policy (CSP) in development environments to restrict script execution origins. 6) Regularly audit development environments for signs of compromise or unusual activity. 7) Consider isolating development environments from production networks to contain potential breaches. These measures go beyond generic advice by focusing on securing the development lifecycle and reducing the attack surface specific to this vulnerability.
Description
Astro is a web framework. Starting in version 5.2.0 and prior to version 5.15.6, a Reflected Cross-Site Scripting (XSS) vulnerability exists in Astro's development server error pages when the `trailingSlash` configuration option is used. An attacker can inject arbitrary JavaScript code that executes in the victim's browser context by crafting a malicious URL. While this vulnerability only affects the development server and not production builds, it could be exploited to compromise developer environments through social engineering or malicious links. Version 5.15.6 fixes the issue.
References
- github.com/withastro/astro/security/advisories/GHSA-w2vj-39qv-7vh7 (opens in a new tab)
- github.com/withastro/astro/pull/12994 (opens in a new tab)
- github.com/withastro/astro/commit/790d9425f39bbbb462f1c27615781cd965009f91 (opens in a new tab)
- github.com/withastro/astro/blob/5bc37fd5cade62f753aef66efdf40f982379029a/packages/astro/src/template/4xx.ts (opens in a new tab)