Vulnerability

CVE-2026-41067

mediumCVSS 3.1 6.1Published 24 Apr 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Astro astro

Weakness type

References

  • github.com /withastro/astro/security/advisories/GHSA-j687-52p2-xcff

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning