CVEMETERBack to radar
OFFICIAL RECORD · JavaScript packages

CVE-2026-41067

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 6.1 · medium

Astro: XSS via incomplete `</script>` sanitization in `define:vars` allows case-insensitive and whitespace-based bypass

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.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 0.189% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T18:36:01.564Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 6.1 · published by GitHub_M
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:01:53.713Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T18:36:01.564ZCISA KEV
cvssverified2026-11-19T12:01:53.713ZCVE Program
epssverified2026-11-19T18:27:22.431ZFIRST EPSS
patchesverified2026-11-19T12:51:58.264ZOSV
affectedverified2026-11-19T12:01:53.713ZCVE Program
lifecycleverified2026-11-19T12:01:53.713ZCVE Program

Affected versions and configuration

withastro astro; default status: unknown: < 6.1.6 [affected; scheme: unspecified]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

OSV · osv · full conditions
{
  "id": "GHSA-j687-52p2-xcff",
  "aliases": [
    "CVE-2026-41067"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "6.1.6"
            }
          ]
        }
      ],
      "package": {
        "name": "astro",
        "purl": "pkg:npm/astro",
        "ecosystem": "npm"
      },
      "versions": [],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-j687-52p2-xcff/GHSA-j687-52p2-xcff.json"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/withastro/astro/security/advisories/GHSA-j687-52p2-xcff",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-41067",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/withastro/astro",
      "type": "PACKAGE"
    },
    {
      "url": "https://github.com/withastro/astro/releases/tag/[email protected]",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "nvd_published_at": "2026-04-24T17:16:21Z",
    "github_reviewed_at": "2026-04-21T20:39:49Z"
  }
}
Archived source JSON
CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "withastro",
      "product": "astro",
      "versions": [
        {
          "status": "affected",
          "version": "< 6.1.6"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2026-41067",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "poc"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2026-04-24T17:27:06.343054Z"
            }
          }
        }
      ],
      "references": [
        {
          "url": "https://github.com/withastro/astro/security/advisories/GHSA-j687-52p2-xcff",
          "tags": [
            "exploit"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2026-04-24T18:16:55.536Z"
      }
    }
  ]
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundarynpm / packageastroNot a distribution channel6.1.6Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history