{"id":"CVE-2026-84376","state":"PUBLISHED","title":"Astro: Authorization bypass from missing path-segment boundary check when stripping the configured base","description":"Astro is a web framework for content-driven websites. Prior to 7.2.4, Astro stripped a configured non-root base path from request pathnames using a string-prefix check without verifying a path-segment boundary. With base \"/app\", a request to \"/appX/admin\" resolved internally to the protected \"/admin\" route while middleware observed \"/appX/admin\" in context.url.pathname. In applications that authorize base-prefixed routes by inspecting context.url.pathname, an unauthenticated remote attacker could bypass pathname-based middleware authorization and reach protected routes. This issue is fixed in version 7.2.4.","publishedAt":"2026-09-02T16:24:23.799Z","updatedAt":"2026-09-04T02:44:22.828Z","severity":{"score":6.3,"label":"Medium","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["withastro astro"],"affected":[{"vendor":"withastro","product":"astro","versions":[{"version":"< 7.2.4","status":"affected"}]}],"references":["https://github.com/withastro/astro/security/advisories/GHSA-376h-93r7-7g6f","https://github.com/withastro/astro/pull/17701","https://github.com/withastro/astro/commit/05763a0884aabb1da78a2749d5bb9d41ae620527","https://github.com/withastro/astro/releases/tag/astro@7.2.4"],"weaknesses":["CWE-187"],"ingestedAt":"2026-10-29T20:13:15.269Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/84xxx/CVE-2026-84376.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-84376","state":"PUBLISHED","datePublished":"2026-09-02T16:24:23.799Z","dateUpdated":"2026-09-04T02:44:22.828Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-09-01T16:27:58.129Z"},"containers":{"cna":{"title":"Astro: Authorization bypass from missing path-segment boundary check when stripping the configured base","descriptions":[{"lang":"en","value":"Astro is a web framework for content-driven websites. Prior to 7.2.4, Astro stripped a configured non-root base path from request pathnames using a string-prefix check without verifying a path-segment boundary. With base \"/app\", a request to \"/appX/admin\" resolved internally to the protected \"/admin\" route while middleware observed \"/appX/admin\" in context.url.pathname. In applications that authorize base-prefixed routes by inspecting context.url.pathname, an unauthenticated remote attacker could bypass pathname-based middleware authorization and reach protected routes. This issue is fixed in version 7.2.4."}],"affected":[{"vendor":"withastro","product":"astro","versions":[{"version":"< 7.2.4","status":"affected"}]}],"references":[{"url":"https://github.com/withastro/astro/security/advisories/GHSA-376h-93r7-7g6f","name":"https://github.com/withastro/astro/security/advisories/GHSA-376h-93r7-7g6f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/withastro/astro/pull/17701","name":"https://github.com/withastro/astro/pull/17701","tags":["x_refsource_MISC"]},{"url":"https://github.com/withastro/astro/commit/05763a0884aabb1da78a2749d5bb9d41ae620527","name":"https://github.com/withastro/astro/commit/05763a0884aabb1da78a2749d5bb9d41ae620527","tags":["x_refsource_MISC"]},{"url":"https://github.com/withastro/astro/releases/tag/astro@7.2.4","name":"https://github.com/withastro/astro/releases/tag/astro@7.2.4","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.3,"baseSeverity":"MEDIUM","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-187","lang":"en","description":"CWE-187: Partial String Comparison","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-09-02T16:24:23.799Z"},"source":{"advisory":"GHSA-376h-93r7-7g6f","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-04T02:44:13.248897Z","id":"CVE-2026-84376","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-04T02:44:22.828Z"}}]}}}