CVE-2024-47885
astro's client-side router has DOM Clobbering Gadget that leads to XSS
The Astro web framework has a DOM Clobbering gadget in the client-side router starting in version 3.0.0 and prior to version 4.16.1. It can lead to cross-site scripting (XSS) in websites enables Astro's client-side routing and has *stored* attacker-controlled scriptless HTML elements (i.e., `iframe` tags with unsanitized `name` attributes) on the destination pages. This vulnerability can result in cross-site scripting (XSS) attacks on websites that built with Astro that enable the client-side routing with `ViewTransitions` and store the user-inserted scriptless HTML tags without properly sanitizing the `name` attributes on the page. Version 4.16.1 contains a patch for this issue.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.445% · 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-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 5.9 · published by GitHub_MCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:H
Assessment source · checked 2026-11-19T12:57:19.085Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:57:19.085Z | CVE Program |
| epss | verified | 2026-11-19T16:04:39.116Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:51:58.264Z | OSV |
| affected | verified | 2026-11-19T12:57:19.085Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:19.085Z | CVE Program |
Affected versions and configuration
withastro astro; default status: unknown: >=3.0.0, < 4.16.1 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "withastro",
"product": "astro",
"versions": [
{
"status": "affected",
"version": ">=3.0.0, < 4.16.1"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2024-47885",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2024-10-15T14:46:55.450301Z"
}
}
}
],
"affected": [
{
"cpes": [
"cpe:2.3:a:withastro:astro:*:*:*:*:*:*:*:*"
],
"vendor": "withastro",
"product": "astro",
"versions": [
{
"status": "affected",
"version": "3.0.0",
"lessThan": "4.16.1",
"versionType": "custom"
}
],
"defaultStatus": "unknown"
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-10-15T14:51:20.142Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-m85w-3h95-hcf9",
"aliases": [
"CVE-2024-47885"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "3.0.0"
},
{
"fixed": "4.16.1"
}
]
}
],
"package": {
"name": "astro",
"purl": "pkg:npm/astro",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/10/GHSA-m85w-3h95-hcf9/GHSA-m85w-3h95-hcf9.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:H"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/withastro/astro/security/advisories/GHSA-m85w-3h95-hcf9",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-47885",
"type": "ADVISORY"
},
{
"url": "https://github.com/withastro/astro/commit/a4ffbfaa5cb460c12bd486fd75e36147f51d3e5e",
"type": "WEB"
},
{
"url": "https://github.com/withastro/astro",
"type": "PACKAGE"
},
{
"url": "https://github.com/withastro/astro/blob/7814a6cad15f06931f963580176d9b38aa7819f2/packages/astro/src/transitions/router.ts#L135-L156",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2024-10-14T19:15:10Z",
"github_reviewed_at": "2024-10-14T20:02:21Z"
}
}Archived source JSONCorrection 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 type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | npm / package | astro | Not a distribution channel | 4.16.1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:51:58.264ZArchived source JSON
Source publication: 2024-10-14T20:02:21.000Z
Source modification: 2025-11-27T08:16:37.087ZDocument fingerprint
998ec8a32f8114f4f6dc251a8df217dbe4184aa39326838d5043215d1ada1359 - CVE ProgramConsulted: 2026-11-19T12:57:19.085ZArchived source JSON
Source publication: 2024-10-14T19:06:09.681Z
Source modification: 2024-10-15T14:51:20.142ZDocument fingerprint
4b562e928702c363153145339b8de60d55ce74559eca6ea0417cdd41031a2f09 - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:39.116ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
9f0dcd79a206c1e9df7af3ccc3246b94763cde2daafc074aaa6c06dadb41d7a7
Official status history
- UNKNOWN → PUBLISHED · · evidence