CVE-2025-12999

UrlUtil.getBaseUrl builds the absolute URLs in a response — download links, icons, asset and API URLs — from the X-Forwarded-Host, X-Forwarded-Proto and X-Forwarded-Prefix request headers, with no check on whether the sender was a trusted proxy, falling back to the client-supplied Host header. Those responses are cached under keys that do not include the host (extension.json since 0.6.0, namespace.details.json since 0.9.0, sitemap since 0.14.5, latest.extension.version.vscode since 0.34.2). A single request carrying a forged header therefore places attacker-chosen URLs into an entry served to every other client for the lifetime of that entry — one hour by default, and cluster-wide where ovsx.redis.enabled is set. The VSIX download URL, its signature URL and the public key URL are all derived from the same base URL, so extension signing does not limit the impact: an attacker who poisons an entry supplies the package, the signature over it, and the key used to verify it. Exploitability depends on deployment topology. A server reachable directly by clients, or fronted by a proxy that relays the client's X-Forwarded-Host rather than overwriting it, is exploitable by an unauthenticated remote attacker. A proxy that overwrites the header is not. An unauthenticated attacker can poison Open VSX's per-extension metadata cache with attacker-controlled download, signature, and public-key URLs by supplying a crafted X-Forwarded-Host header, causing downstream VS Code-compatible editors to fetch and install a malicious VSIX. Workarounds (unpatched versions) 1. Configure the reverse proxy to set rather than relay X-Forwarded-Host, X-Forwarded-Proto and X-Forwarded-Prefix — note that nginx's $host is the client's Host header and is not a safe value. 2. Ensure the server is not reachable except through that proxy. 3. Flush the caches afterwards; poisoned entries survive the configuration change.
CVSS

No CVSS.

Configurations

No configuration.

History

14 Oct 2026, 13:10

Type Values Removed Values Added
Summary
  • (es) UrlUtil.getBaseUrl construye las URL absolutas en una respuesta - enlaces de descarga, iconos, activos y URL de la API - a partir de los encabezados de solicitud X-Forwarded-Host, X-Forwarded-Proto y X-Forwarded-Prefix, sin verificar si el remitente era un proxy de confianza, recurriendo al encabezado Host proporcionado por el cliente. Esas respuestas se almacenan en caché bajo claves que no incluyen el host (extension.json desde 0.6.0, namespace.details.json desde 0.9.0, sitemap desde 0.14.5, latest.extension.version.vscode desde 0.34.2). Por lo tanto, una única solicitud que contenga un encabezado falsificado coloca URL elegidas por el atacante en una entrada servida a cada otro cliente durante la vida útil de esa entrada - una hora por defecto, y a nivel de clúster donde ovsx.redis.enabled está configurado. La URL de descarga de VSIX, su URL de firma y la URL de clave pública se derivan de la misma URL base, por lo que la firma de la extensión no limita el impacto: un atacante que envenena una entrada proporciona el paquete, la firma del mismo y la clave utilizada para verificarlo. La explotabilidad depende de la topología de despliegue. Un servidor accesible directamente por los clientes, o que está detrás de un proxy que retransmite el X-Forwarded-Host del cliente en lugar de sobrescribirlo, es explotable por un atacante remoto no autenticado. Un proxy que sobrescribe el encabezado no lo es. Un atacante no autenticado puede envenenar la caché de metadatos por extensión de Open VSX con URL de descarga, firma y clave pública controladas por el atacante al proporcionar un encabezado X-Forwarded-Host manipulado, lo que provoca que los editores compatibles con VS Code posteriores obtengan e instalen un VSIX malicioso. Soluciones alternativas (versiones sin parchear) 1. Configure el proxy inverso para que establezca en lugar de retransmitir X-Forwarded-Host, X-Forwarded-Proto y X-Forwarded-Prefix - tenga en cuenta que $host de nginx es el encabezado Host del cliente y no es un valor seguro. 2. Asegúrese de que el servidor no sea accesible excepto a través de ese proxy. 3. Vacíe las cachés después; las entradas envenenadas sobreviven al cambio de configuración.

22 Sep 2026, 14:17

Type Values Removed Values Added
CWE CWE-345

21 Sep 2026, 14:17

Type Values Removed Values Added
References () https://github.com/eclipse-openvsx/openvsx/security/advisories/GHSA-f55q-5m46-rmxc - () https://github.com/eclipse-openvsx/openvsx/security/advisories/GHSA-f55q-5m46-rmxc -

21 Sep 2026, 09:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-09-21 09:17

Updated : 2026-10-14 13:10


NVD link : CVE-2025-12999

Mitre link : CVE-2025-12999

CVE.ORG link : CVE-2025-12999


JSON object : View

Products Affected

No product.

CWE
CWE-345

Insufficient Verification of Data Authenticity