# CVE-2025-66035: Angular HTTP Client Has XSRF Token Leakage via Protocol-Relative URLs

> Attackers can steal XSRF tokens via protocol-relative URLs in Angular HttpClient, enabling CSRF attacks against users.

- **Severity:** High 7.7 (`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`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 26 Nov 2025
- **Updated:** 2 Jun 2026
- **Also known as:** CLSA-2026-1773879513, CLSA-2026-1774743848, CLSA-2026-1775176169, CLSA-2026-1775176173, CLSA-2026-1780274973, CLSA-2026-1780274974, CLSA-2026-1780274975, CLSA-2026-1780274976, CLSA-2026-1780361377, CLSA-2026-1780361378, CLSA-2026-1780361396, CLSA-2026-1780361399, CLSA-2026-1780447818, CLSA-2026-1780447819, CLSA-2026-1780447831, CLSA-2026-1780447834, CLSA-2026-1780447842, CLSA-2026-1780447843, CLSA-2026-1780534253, CLSA-2026-1780534262, CLSA-2026-1780534263, CLSA-2026-1780534265, CLSA-2026-1780620666, CLSA-2026-1780620676, CLSA-2026-1780620679, CLSA-2026-1780707087, CLSA-2026-1780707088, CLSA-2026-1780707089, CLSA-2026-1780793490, CLSA-2026-1783126877, CLSA-2026-1783126880, CLSA-2026-1783126881, CLSA-2026-1783126882, CLSA-2026-1783213283, CLSA-2026-1783213284, CLSA-2026-1783213285, CLSA-2026-1783213286, CLSA-2026-1783213287, CLSA-2026-1783213289, CLSA-2026-1783213290, CLSA-2026-1792160919, CLSA-2026-1792160924, CLSA-2026-1792160982, CLSA-2026-1792161081, CLSA-2026-1792161085, CLSA-2026-1792161104, CLSA-2026-1792161128, CLSA-2026-1792161129, CLSA-2026-1792161130, CLSA-2026-1792161131, CLSA-2026-1792161132, CLSA-2026-1792161133, CLSA-2026-1792161134, CLSA-2026-1792161135, CLSA-2026-1792161136, CLSA-2026-1792161137, CLSA-2026-1792161139, CLSA-2026-1792161140, CLSA-2026-1792161141, CLSA-2026-1792161142, CLSA-2026-1792161143, CLSA-2026-1792161144, CLSA-2026-1792161145, CLSA-2026-1792161146, CLSA-2026-1792161147, CLSA-2026-1792161148, CLSA-2026-1792161150, CLSA-2026-1792161152, CLSA-2026-1792161153, CLSA-2026-1792161154, CLSA-2026-1792161233, CLSA-2026-1792161236, CLSA-2026-1792161237, CLSA-2026-1792161238, CLSA-2026-1792161239, CLSA-2026-1792161240, CLSA-2026-1792161241, CLSA-2026-1792161242, CLSA-2026-1792161245, CLSA-2026-1792161246, CLSA-2026-1792163468, CLSA-2026-1792163470, CLSA-2026-1792163491, CLSA-2026-1792163517, CLSA-2026-1792163518, CLSA-2026-1792163519, CLSA-2026-1792163520, CLSA-2026-1792163521, CLSA-2026-1792163522, CLSA-2026-1792163524, CLSA-2026-1792163525, CLSA-2026-1792163526, CLSA-2026-1792163527, CLSA-2026-1792163528, CLSA-2026-1792163529, CLSA-2026-1792163531, CLSA-2026-1792163532, CLSA-2026-1792163533, CLSA-2026-1792163534, CLSA-2026-1792163535, CLSA-2026-1792163536, CLSA-2026-1792163537, CLSA-2026-1792163538, CLSA-2026-1792163540, CLSA-2026-1792163541, CLSA-2026-1792163542, CLSA-2026-1792163543, CLSA-2026-1792163624, CLSA-2026-1792163626, CLSA-2026-1792163627, CLSA-2026-1792163628, CLSA-2026-1792163629, CLSA-2026-1792163630, CLSA-2026-1792163631, CLSA-2026-1792163632, CLSA-2026-1792163633, CLSA-2026-1792163636, CLSA-2026-1792163637, CLSA-2026-1792208076, CLSA-2026-1792208080, CLSA-2026-1792208086, CLSA-2026-1792208094, CLSA-2026-1792208095, CLSA-2026-1792208096, CLSA-2026-1792208097, CLSA-2026-1792208098, CLSA-2026-1792208099, CLSA-2026-1792208100, CLSA-2026-1792208101, CLSA-2026-1792208102, CLSA-2026-1792208103, CLSA-2026-1792208104, CLSA-2026-1792208140, CLSA-2026-1792208141, CLSA-2026-1792208142, CLSA-2026-1792208143, CLSA-2026-1792208458, CLSA-2026-1792208459, CLSA-2026-1792208468, CLSA-2026-1792208470, CLSA-2026-1792208471, CLSA-2026-1792208472, CLSA-2026-1792208473, CLSA-2026-1792208505, CLSA-2026-1792208512, CLSA-2026-1792208518, CLSA-2026-1792208519, CLSA-2026-1792208529, CLSA-2026-1792208545, CLSA-2026-1792208546, CLSA-2026-1792208573, CLSA-2026-1792208574, CLSA-2026-1792208575, CLSA-2026-1792208576, CLSA-2026-1792208577, CLSA-2026-1792208578, CLSA-2026-1792208774, CLSA-2026-1792250184, CLSA-2026-1792250188, CLSA-2026-1792250200, CLSA-2026-1792250201, CLSA-2026-1792250202, CLSA-2026-1792250203, CLSA-2026-1792250204, CLSA-2026-1792250205, CLSA-2026-1792250206, CLSA-2026-1792250207, CLSA-2026-1792250208, CLSA-2026-1792250209, CLSA-2026-1792250236, CLSA-2026-1792250237, CLSA-2026-1792250238, CLSA-2026-1792250239, CLSA-2026-1792250479, CLSA-2026-1792250525, CLSA-2026-1792250526, CLSA-2026-1792250537, CLSA-2026-1792250538, CLSA-2026-1792250543, CLSA-2026-1792250548, CLSA-2026-1792250550, CLSA-2026-1792250556, CLSA-2026-1792250566, CLSA-2026-1792250567, CLSA-2026-1792250572, CLSA-2026-1792250573, CLSA-2026-1792250599, CLSA-2026-1792250605, CLSA-2026-1792250659, CLSA-2026-1792250660, CLSA-2026-1792250661, CLSA-2026-1792250662, CLSA-2026-1792250664, CLSA-2026-1792250669, CLSA-2026-1792250787, CLSA-2026-1792250797, CLSA-2026-1792281022, CLSA-2026-1792281029, CLSA-2026-1792281038, CLSA-2026-1792281056, CLSA-2026-1792281057, CLSA-2026-1792281058, CLSA-2026-1792281059, CLSA-2026-1792281060, CLSA-2026-1792281061, CLSA-2026-1792281062, CLSA-2026-1792281063, CLSA-2026-1792281064, CLSA-2026-1792281065, CLSA-2026-1792281066, CLSA-2026-1792281067, CLSA-2026-1792281068, CLSA-2026-1792281069, CLSA-2026-1792281070, CLSA-2026-1792281071, CLSA-2026-1792281072, CLSA-2026-1792281073, CLSA-2026-1792281074, CLSA-2026-1792281076, CLSA-2026-1792281077, CLSA-2026-1792281078, CLSA-2026-1792281134, CLSA-2026-1792281137, CLSA-2026-1792281138, CLSA-2026-1792281139, CLSA-2026-1792281140, CLSA-2026-1792281141, CLSA-2026-1792281142, CLSA-2026-1792281143, CLSA-2026-1792281144, CLSA-2026-1792281145, CLSA-2026-1792281712, CLSA-2026-1792281713, CLSA-2026-1792281820, CLSA-2026-1792281833, CLSA-2026-1792325289, CLSA-2026-1792325295, CLSA-2026-1792325314, CLSA-2026-1792325315, CLSA-2026-1792325316, CLSA-2026-1792325317, CLSA-2026-1792325318, CLSA-2026-1792325319, CLSA-2026-1792325320, CLSA-2026-1792325321, CLSA-2026-1792325322, CLSA-2026-1792325323, CLSA-2026-1792325324, CLSA-2026-1792325325, CLSA-2026-1792325326, CLSA-2026-1792325327, CLSA-2026-1792325328, CLSA-2026-1792325329, CLSA-2026-1792325330, CLSA-2026-1792325367, CLSA-2026-1792325368, CLSA-2026-1792325369, CLSA-2026-1792325370, CLSA-2026-1792325372, CLSA-2026-1792325934, CLSA-2026-1792325935, CLSA-2026-1792325936, CLSA-2026-1792325969, CLSA-2026-1792326023, CLSA-2026-1792326036, CLSA-2026-1792326043, CLSA-2026-1792326047, CLSA-2026-1792326052, CLSA-2026-1792326053, CLSA-2026-1792326056, CLSA-2026-1792326065, CLSA-2026-1792326066, CLSA-2026-1792326071, CLSA-2026-1792326073, CLSA-2026-1792345148, CLSA-2026-1792345155, CLSA-2026-1792345163, CLSA-2026-1792345176, CLSA-2026-1792345177, CLSA-2026-1792345178, CLSA-2026-1792345179, CLSA-2026-1792345180, CLSA-2026-1792345181, CLSA-2026-1792345182, CLSA-2026-1792345183, CLSA-2026-1792345184, CLSA-2026-1792345185, CLSA-2026-1792345186, CLSA-2026-1792345187, CLSA-2026-1792345188, CLSA-2026-1792345189, CLSA-2026-1792345191, CLSA-2026-1792345235, CLSA-2026-1792345237, CLSA-2026-1792345238, CLSA-2026-1792345239, CLSA-2026-1792345241, CLSA-2026-1792345638, CLSA-2026-1792345639, CLSA-2026-1792345640, CLSA-2026-1792345641, CLSA-2026-1792345642, CLSA-2026-1792345650, CLSA-2026-1792345696, CLSA-2026-1792345700, CLSA-2026-1792345708, CLSA-2026-1792345724, CLSA-2026-1792345728, CLSA-2026-1792345753, CLSA-2026-1792345754, CLSA-2026-1792345824, CLSA-2026-1792345948, CLSA-2026-1792345949, CLSA-2026-1792357198, CLSA-2026-1792357204, CLSA-2026-1792357212, CLSA-2026-1792357228, CLSA-2026-1792357229, CLSA-2026-1792357230, CLSA-2026-1792357231, CLSA-2026-1792357232, CLSA-2026-1792357233, CLSA-2026-1792357234, CLSA-2026-1792357235, CLSA-2026-1792357236, CLSA-2026-1792357237, CLSA-2026-1792357238, CLSA-2026-1792357239, CLSA-2026-1792357240, CLSA-2026-1792357241, CLSA-2026-1792357242, CLSA-2026-1792357243, CLSA-2026-1792357244, CLSA-2026-1792357245, CLSA-2026-1792357246, CLSA-2026-1792357247, CLSA-2026-1792357297, CLSA-2026-1792357298, CLSA-2026-1792357299, CLSA-2026-1792357300, CLSA-2026-1792357301, CLSA-2026-1792357302, CLSA-2026-1792357303, CLSA-2026-1792357304, CLSA-2026-1792357950, CLSA-2026-1792357952, CLSA-2026-1792357977, CLSA-2026-1792366515, CLSA-2026-1792366521, CLSA-2026-1792366536, CLSA-2026-1792366537, CLSA-2026-1792366538, CLSA-2026-1792366539, CLSA-2026-1792366540, CLSA-2026-1792366541, CLSA-2026-1792366542, CLSA-2026-1792366543, CLSA-2026-1792366544, CLSA-2026-1792366545, CLSA-2026-1792366546, CLSA-2026-1792366547, CLSA-2026-1792366548, CLSA-2026-1792366549, CLSA-2026-1792366550, CLSA-2026-1792366585, CLSA-2026-1792366586, CLSA-2026-1792366587, CLSA-2026-1792366588, CLSA-2026-1792366881, CLSA-2026-1792366882, CLSA-2026-1792366888, CLSA-2026-1792366896, CLSA-2026-1792366898, CLSA-2026-1792366899, CLSA-2026-1792366908, CLSA-2026-1792366914, CLSA-2026-1792366941, CLSA-2026-1792366973, CLSA-2026-1792366977, CLSA-2026-1792367033, CLSA-2026-1792367034, CLSA-2026-1792367035, CLSA-2026-1792367424, CLSA-2026-1792367425, CLSA-2026-1792367426, CLSA-2026-1792367934, CLSA-2026-1792371577, CLSA-2026-1792371579, CLSA-2026-1792371585, CLSA-2026-1792371594, CLSA-2026-1792371595, CLSA-2026-1792371596, CLSA-2026-1792371597, CLSA-2026-1792371598, CLSA-2026-1792371599, CLSA-2026-1792371600, CLSA-2026-1792371601, CLSA-2026-1792371602, CLSA-2026-1792371633, CLSA-2026-1792371634, CLSA-2026-1792371635, CLSA-2026-1792371636, CLSA-2026-1792372004, CLSA-2026-1792372005, CLSA-2026-1792372029, CLSA-2026-1792372054, CLSA-2026-1792372066, CLSA-2026-1792372071, CLSA-2026-1792372072, CLSA-2026-1792372073, CLSA-2026-1792372074, CLSA-2026-1792372105, CLSA-2026-1792375673, CLSA-2026-1792375677, CLSA-2026-1792375693, CLSA-2026-1792375694, CLSA-2026-1792375695, CLSA-2026-1792375696, CLSA-2026-1792375697, CLSA-2026-1792375698, CLSA-2026-1792375699, CLSA-2026-1792375700, CLSA-2026-1792375701, CLSA-2026-1792375702, CLSA-2026-1792375703, CLSA-2026-1792375704, CLSA-2026-1792375706, CLSA-2026-1792375707, CLSA-2026-1792375744, CLSA-2026-1792375745, CLSA-2026-1792375746, CLSA-2026-1792375747, CLSA-2026-1792376058, CLSA-2026-1792376076, CLSA-2026-1792376087, CLSA-2026-1792376098, CLSA-2026-1792376102, CLSA-2026-1792376109, CLSA-2026-1792376115, CLSA-2026-1792376120, CLSA-2026-1792376144, CLSA-2026-1792376145, CLSA-2026-1792376146, CLSA-2026-1792376147, CLSA-2026-1792376153, CLSA-2026-1792376207, CLSA-2026-1792376210, CLSA-2026-1792376217, CLSA-2026-1792376597, CLSA-2026-1792376598, CLSA-2026-1792376600, CLSA-2026-1792379932, CLSA-2026-1792379937, CLSA-2026-1792379951, CLSA-2026-1792379952, CLSA-2026-1792379953, CLSA-2026-1792379954, CLSA-2026-1792379955, CLSA-2026-1792379956, CLSA-2026-1792379957, CLSA-2026-1792379958, CLSA-2026-1792379959, CLSA-2026-1792379960, CLSA-2026-1792379961, CLSA-2026-1792379962, CLSA-2026-1792379963, CLSA-2026-1792379964, CLSA-2026-1792379966, CLSA-2026-1792379967, CLSA-2026-1792379968, CLSA-2026-1792380008, CLSA-2026-1792380009, CLSA-2026-1792380010, CLSA-2026-1792380011, CLSA-2026-1792380012, CLSA-2026-1792380387, CLSA-2026-1792380388, CLSA-2026-1792380396, CLSA-2026-1792380410, CLSA-2026-1792380415, CLSA-2026-1792380420, CLSA-2026-1792380426, CLSA-2026-1792380431, CLSA-2026-1792380442, CLSA-2026-1792380448, CLSA-2026-1792380449, CLSA-2026-1792380452, CLSA-2026-1792380477, CLSA-2026-1792380485, CLSA-2026-1792380550, CLSA-2026-1792382562, CLSA-2026-1792382568, CLSA-2026-1792382583, CLSA-2026-1792382584, CLSA-2026-1792382585, CLSA-2026-1792382586, CLSA-2026-1792382587, CLSA-2026-1792382588, CLSA-2026-1792382589, CLSA-2026-1792382590, CLSA-2026-1792382591, CLSA-2026-1792382592, CLSA-2026-1792382593, CLSA-2026-1792382594, CLSA-2026-1792382595, CLSA-2026-1792382620, CLSA-2026-1792382621, CLSA-2026-1792382622, CLSA-2026-1792382623, CLSA-2026-1792382625, CLSA-2026-1792382910, CLSA-2026-1792382917, CLSA-2026-1792382924, CLSA-2026-1792382926, CLSA-2026-1792382927, CLSA-2026-1792382931, CLSA-2026-1792382937, CLSA-2026-1792382947, CLSA-2026-1792382963, CLSA-2026-1792382995, CLSA-2026-1792383056, CLSA-2026-1792383057, CLSA-2026-1792383058, CLSA-2026-1792383059, CLSA-2026-1792383060, CLSA-2026-1792383066, CLSA-2026-1792383196, CLSA-2026-1792383452, CLSA-2026-1792383964, CLSA-2026-1792386037, CLSA-2026-1792386042, CLSA-2026-1792386058, CLSA-2026-1792386059, CLSA-2026-1792386060, CLSA-2026-1792386061, CLSA-2026-1792386062, CLSA-2026-1792386063, CLSA-2026-1792386064, CLSA-2026-1792386065, CLSA-2026-1792386066, CLSA-2026-1792386067, CLSA-2026-1792386068, CLSA-2026-1792386069, CLSA-2026-1792386070, CLSA-2026-1792386071, CLSA-2026-1792386072, CLSA-2026-1792386106, CLSA-2026-1792386107, CLSA-2026-1792386108, CLSA-2026-1792386109, CLSA-2026-1792386110, CLSA-2026-1792386418, CLSA-2026-1792386426, CLSA-2026-1792386441, CLSA-2026-1792386458, CLSA-2026-1792386463, CLSA-2026-1792386469, CLSA-2026-1792386475, CLSA-2026-1792386479, CLSA-2026-1792386486, CLSA-2026-1792386514, CLSA-2026-1792386515, CLSA-2026-1792386516, CLSA-2026-1792386517, CLSA-2026-1792386523, CLSA-2026-1792386711, GHSA-58c5-g7wp-6w37, UBUNTU-CVE-2025-66035

## What is CVE-2025-66035?

CVE-2025-66035 is a high-severity vulnerability in angular, published on 26 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

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.

Weakness: CWE-359 (Exposure of Private Personal Information to an Unauthorized Actor), CWE-201 (Insertion of Sensitive Information Into Sent Data)

## Which versions are affected by CVE-2025-66035?

6 open source packages ship an affected version, including @angular/common.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `@angular/common` | npm | All versions | 19.2.16 |
| `@angular/common` | npm | All versions | 19.2.16 |
| `@angular/common` | npm | From 20.0.0-next.0 | 20.3.14 |
| `@angular/common` | npm | From 20.0.0-next.0 | 20.3.14 |
| `@angular/common` | npm | From 21.0.0-next.0 | 21.0.1 |
| `@angular/common` | npm | From 21.0.0-next.0 | 21.0.1 |

## How do I fix CVE-2025-66035?

Upgrade @angular/common to a fixed version for your release line: 19.2.16, 20.3.14 or 21.0.1.

## Is CVE-2025-66035 being exploited?

There is no known exploitation of CVE-2025-66035 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-66035 and fix it if it is affected.

What it is: CVE-2025-66035 is a high-severity vulnerability in angular, published on 26 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2025-66035 in the wild and no public exploit code.

Affected packages and fixed versions:
- @angular/common (npm): affected all versions; fixed in 19.2.16
- @angular/common (npm): affected all versions; fixed in 19.2.16
- @angular/common (npm): affected from 20.0.0-next.0; fixed in 20.3.14
- @angular/common (npm): affected from 20.0.0-next.0; fixed in 20.3.14
- @angular/common (npm): affected from 21.0.0-next.0; fixed in 21.0.1
- @angular/common (npm): affected from 21.0.0-next.0; fixed in 21.0.1

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-66035/ (Markdown: https://insights.sbomify.com/CVE-2025-66035/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-66035
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-66035
- OSV: https://osv.dev/vulnerability/CVE-2025-66035

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-66035/
Summaries are generated and may contain mistakes; the official description above is the record.
