CVE-2026-73425

Astro is a web framework for content-driven websites. Prior to 8.1.2, the Astro Netlify adapter converts each image.remotePatterns entry into a regular expression written to .netlify/v1/config.json under images.remote_images for Netlify's Image CDN allowlist. In packages/integrations/netlify/src/index.ts, remotePatternToRegex() escapes dots in hostname values but interpolates literal pathname values without escaping regular expression metacharacters such as ., +, ?, (, and [, so a restrictive pathname such as /img/v1.0/file also matches metacharacter-adjacent paths, including paths that cross a segment. Netlify enforces the generated regular expression directly and Astro's matchPattern() helper does not revalidate the request, allowing optimization of images on an already-allowed host that the declared pathname was intended to exclude. This issue is fixed in version 8.1.2.
Configurations

No configuration.

History

23 Oct 2026, 19:10

Type Values Removed Values Added
Summary
  • (es) Astro es un web framework para sitios web basados en contenido. Antes de la versión 8.1.2, el adaptador de Astro para Netlify convierte cada entrada de image.remotePatterns en una expresión regular escrita en .netlify/v1/config.json bajo images.remote_images para la lista de permitidos (allowlist) del CDN de imágenes de Netlify. En packages/integrations/netlify/src/index.ts, remotePatternToRegex() escapa los puntos en los valores de hostname pero interpola valores literales de pathname sin escapar metacaracteres de expresiones regulares como ., +, ?, (, y [, por lo que un pathname restrictivo como /img/v1.0/file también coincide con rutas adyacentes a metacaracteres, incluyendo rutas que cruzan un segmento. Netlify aplica directamente la expresión regular generada y la función auxiliar matchPattern() de Astro no revalida la solicitud, permitiendo la optimización de imágenes en un host ya permitido que el pathname declarado pretendía excluir. Este problema se ha solucionado en la versión 8.1.2.

Information

Published : 2026-08-12 21:17

Updated : 2026-10-24 15:10


NVD link : CVE-2026-73425

Mitre link : CVE-2026-73425

CVE.ORG link : CVE-2026-73425


JSON object : View

Products Affected

No product.

CWE
CWE-185

Incorrect Regular Expression