1. Archivio CVE
  2. 2025
  3. CVE-2025-66035

CVE-2025-66035

7.7 Gravità alta CVSS v4.0 · fonte NVD CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X 7.7 – Alta

Descrizione

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.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
angular angular >= 21.0.0-next.0, < 21.0.1 –
angular angular >= 20.0.0-next.0, < 20.3.14 –
angular angular < 19.2.16 –
Tutte le 38 vulnerabilità di Angular

Tipo di vulnerabilità

CWE-201 Informazioni sensibili inserite nei dati inviati

Il prodotto invia dati a un altro soggetto, ma una parte di quei dati contiene informazioni sensibili a cui il destinatario non dovrebbe avere accesso.

Impatto sui sistemi

AmbitoImpatto
Riservatezza Leggere file o cartelle, Leggere la memoria, Leggere i dati dell’applicazione

Come si previene

Requisiti Specify which data in the software should be regarded as sensitive. Consider which types of users should have access to which types of data.
Sviluppo Ensure that any possibly sensitive data specified in the requirements is verified with designers to ensure that it is either a calculated risk or mitigated elsewhere. Any information that is not necessary to the functionality should be removed in order to lower both the overhead and the possibility of security sensitive data being sent.
Configurazione del sistema Setup default error messages so that unexpected errors do not disclose sensitive information.
Architettura e progettazione · Separazione dei privilegi Suddividi il sistema in compartimenti, con aree sicure i cui confini di fiducia siano tracciati senza ambiguità. Non lasciare uscire i dati sensibili da questi confini e presta sempre attenzione quando interagisci con un compartimento esterno all’area sicura. La suddivisione va prevista già in fase di progettazione e deve favorire la separazione dei privilegi; per decidere quando usare i privilegi e quando rinunciarvi, segui il principio del privilegio minimo.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 512 CVE di tipo CWE-201, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org