CVE-2025-66035

Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to versions 19.2.16, 20.3.14, and 21.0.1, there is a XSRF token leakage via protocol-relative URLs in angular HTTP clients. The vulnerability is a Credential Leak by App Logic that leads to the unauthorized disclosure of the Cross-Site Request Forgery (XSRF) token to an attacker-controlled domain. Angular's HttpClient has a built-in XSRF protection mechanism that works by checking if a request URL starts with a protocol (http:// or https://) to determine if it is cross-origin. If the URL starts with protocol-relative URL (//), it is incorrectly treated as a same-origin request, and the XSRF token is automatically added to the X-XSRF-TOKEN header. This issue has been patched in versions 19.2.16, 20.3.14, and 21.0.1. A workaround for this issue involves avoiding using protocol-relative URLs (URLs starting with //) in HttpClient requests. All backend communication URLs should be hardcoded as relative paths (starting with a single /) or fully qualified, trusted absolute URLs.
CVSS

No CVSS.

Configurations

No configuration.

History

19 Oct 2026, 13:10

Type Values Removed Values Added
Summary
  • (es) Angular es una plataforma de desarrollo para construir aplicaciones web móviles y de escritorio usando TypeScript/JavaScript y otros lenguajes. Versiones anteriores a las 19.2.16, 20.3.14 y 21.0.1, existe una fuga de token XSRF a través de URLs relativas al protocolo en clientes HTTP de Angular. La vulnerabilidad es una fuga de credenciales por lógica de aplicación que conduce a la divulgación no autorizada del token de Cross-Site Request Forgery (XSRF) a un dominio controlado por el atacante. El HttpClient de Angular tiene un mecanismo de protección XSRF incorporado que funciona comprobando si una URL de petición comienza con un protocolo (http:// o https://) para determinar si es de origen cruzado. Si la URL comienza con una URL relativa al protocolo (//), se trata incorrectamente como una petición del mismo origen, y el token XSRF se añade automáticamente a la cabecera X-XSRF-TOKEN. Este problema ha sido parcheado en las versiones 19.2.16, 20.3.14 y 21.0.1. Una solución alternativa para este problema implica evitar el uso de URLs relativas al protocolo (URLs que comienzan con //) en las peticiones de HttpClient. Todas las URLs de comunicación de backend deben ser codificadas de forma rígida como rutas relativas (que comienzan con una sola /) o URLs absolutas de confianza y completamente calificadas.

Information

Published : 2025-11-26 23:15

Updated : 2026-10-19 13:10


NVD link : CVE-2025-66035

Mitre link : CVE-2025-66035

CVE.ORG link : CVE-2025-66035


JSON object : View

Products Affected

No product.

CWE
CWE-201

Insertion of Sensitive Information Into Sent Data

CWE-359

Exposure of Private Personal Information to an Unauthorized Actor