CVE-2026-41067
Full vulnerability record from the local CVENow database.
Description
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.
Severity
MEDIUM
CVSS score
6.1
(v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2026-04-24 17:16:21.083000
Last modified
2026-10-26 22:10:00.163000
View original CVE JSON
{
"id": "CVE-2026-41067",
"sourceIdentifier": "[email protected]",
"published": "2026-04-24T17:16:21.083",
"lastModified": "2026-10-26T22:10:00.163",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "Astro es un web framework. Antes de 6.1.6, la función defineScriptVars en el pipeline de renderizado del lado del servidor de Astro usa una expresión regular sensible a mayúsculas y minúsculas /<\\/script>/g para sanear valores inyectados en etiquetas [script_tag] en línea a través de la directiva define:vars. Los analizadores HTML cierran los elementos [script_tag] sin distinción entre mayúsculas y minúsculas y también aceptan espacios en blanco o / antes del cierre >, permitiendo a un atacante eludir la sanitización con payloads como [/Script], </script > o </script/> e inyectar HTML/JavaScript arbitrario. Esta vulnerabilidad está corregida en 6.1.6."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "withastro",
"product": "astro",
"versions": [
{
"version": "< 6.1.6",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"baseScore": 6.1,
"baseSeverity": "MEDIUM",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "REQUIRED",
"scope": "CHANGED",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"availabilityImpact": "NONE"
},
"exploitabilityScore": 2.8,
"impactScore": 2.7
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-04-24T17:27:06.343054Z",
"id": "CVE-2026-41067",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-79"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:astro:astro:*:*:*:*:*:node.js:*:*",
"versionEndExcluding": "6.1.6",
"matchCriteriaId": "F1E12104-0666-4579-82D6-3805F521F36A"
}
]
}
]
}
],
"references": [
{
"url": "https://github.com/withastro/astro/security/advisories/GHSA-j687-52p2-xcff",
"source": "[email protected]",
"tags": [
"Exploit",
"Mitigation",
"Vendor Advisory"
]
},
{
"url": "https://github.com/withastro/astro/security/advisories/GHSA-j687-52p2-xcff",
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"tags": [
"Exploit",
"Mitigation",
"Vendor Advisory"
]
}
]
}