Findings

CVE-2026-41067

Astro is a web framework.

Published Apr 24, 2026 · updated Jun 17, 2026 · astro astro

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 / /g to sanitize values injected into inline tags via the define:vars directive. HTML parsers close elements case-insensitively and also accept whitespace or / before the closing >, allowing an attacker to bypass the sanitization with payloads like , , or and inject arbitrary HTML/JavaScript. This vulnerability is fixed in 6.1.6.

Code

The project this record applies to. Exploit listings stay in References.

No public source repository is identified for this product.

Timeline

Detection, updates, and resolution for this record.

  1. Apr 24, 2026 · NIST NVD

    Detected

    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 / /g to sanitize values injected into inline tags via the define:vars directive. HTML parsers close elements case-insensitively and also accept whitespace or / before the closing >, allowing an attacker to bypass the sanitization with payloads like , , or an

  2. Jun 17, 2026 · NIST NVD

    Updated

    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 / /g to sanitize values injected into inline tags via the define:vars directive. HTML parsers close elements case-insensitively and also accept whitespace or / before the closing >, allowing an attacker to bypass the sanitization with payloads like , , or an

Affected

  • cpe astro/astroversion unspecified

Sources

  • CVE.orgVulnerability recordCVE-2026-41067

    Official CVE identifier

    cve.org
  • NIST NVDVulnerability recordCVE-2026-41067

    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 / /g to sanitize values injected into inline tags via the define:vars directive. HTML parsers close elements ca

    nvd.nist.gov

References

CVE-2026-41067 · ZeroDay Findings