GHSA-j687-52p2-xcff · Severity: medium · Ecosystem: npm — Astro: XSS in define:vars via incomplete </script> tag sanitization
Astro is a web framework. Prior to 6.1.6, the defineScriptVars function in Astro's server-side rendering pipeline uses a case-sensitive regex /<\/script>/g to sanitize values injected into inline <script> tags via the define:vars directive. HTML parsers close <script> elements case-insensitively and also accept whitespace or / before the closing >, allowing an attacker to bypass the sanitization with payloads like </Script>, </script >, or </script/> and inject arbitrary HTML/JavaScript. This vulnerability is fixed in 6.1.6.
Conclusion & alert: CVE-2026-41067 is rated Exploit Available (50/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.19%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.05% | 0.19% | +0.14% |
| 2 | 2026-06-05 | 0.03% | 0.05% | +0.02% |
| 3 | 2026-04-25 | — | 0.03% | — |
Full EPSS history (3 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 6.1 | 3.1 | MEDIUM |
|
2.8 | 2.7 | [email protected] |
GHSA-j687-52p2-xcff · Severity: medium · Ecosystem: npm — Astro: XSS in define:vars via incomplete </script> tag sanitization
| URL | Tags |
|---|---|
| https://github.com/withastro/astro/security/advisories/GHSA-j687-52p2-xcff | Exploit Mitigation Vendor Advisory |