Vulnerabilities in pkg:npm/@angular/common

PACKAGE
Advisory Identifier: GHSA-jfgx-762w-99vr
Advisory Summary

CVE-2026-111753 is a MODERATE xsrf token leakage vulnerability (CWE-359: Exposure of Private Personal Information to an Unauthorized Actor) affecting @angular/common libraries in the npm ecosystem. The issue involves xsrf token leakage via url parsing discrepancy in angular http client (incomplete fix for cve-2025-66035). Remediation is available by upgrading affected packages to version 21.0.3, 20.3.34.

8 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@angular/common

8 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@angular/common. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-jfgx-762w-99vr CVE-2026-111753 MODERATE @angular/common: XSRF Token Leakage via URL Parsing Discrepancy in Angular HTTP Client (Incomplete fix for CVE-2025-66035)
GHSA-p297-fm68-3q8c CVE-2026-88059 MODERATE Angular: Information Leak via `HttpTransferCache` Bypass When Using `withRequestsMadeViaParent`
GHSA-jhpw-976m-542j CVE-2026-68945 HIGH Angular: Cache-Key Ambiguity in HttpTransferCache Leading to Cross-Request Response Reuse and State Poisoning
GHSA-p3vc-36g9-x9gr CVE-2026-50171 HIGH @angular/common: Denial of Service (DoS) via OOM in Number Formatting (digitsInfo)
GHSA-q6f4-qqrg-jv6x CVE-2026-50170 HIGH @angular/common: Information Leak via Default Caching of Credentialed Requests in HttpTransferCache
GHSA-48r7-hpm6-gfxm CVE-2026-54268 HIGH @angular/common: Denial of Service (DoS) via OOM in Date Formatting (formatDate)
GHSA-39pv-4j6c-2g6v CVE-2026-54266 HIGH @angular/common: Weak 32-Bit Cache Key Hashing in `HttpTransferCache` Leading to Cross-Request Data Leakage and State Poisoning
GHSA-58c5-g7wp-6w37 CVE-2025-66035 HIGH Angular is Vulnerable to XSRF Token Leakage via Protocol-Relative URLs in Angular HTTP Client

CVE-2026-111753 at a Glance

CVE Identifier CVE-2026-111753
GHSA Identifier GHSA-jfgx-762w-99vr
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-359: Exposure of Private Personal Information to an Unauthorized Actor
Affected Product @angular/common
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-111753

To remediate this vulnerability, upgrade all affected @angular/common dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@angular/common fixed: 21.0.3
npm install @angular/common@21.0.3
@angular/common fixed: 20.3.34
npm install @angular/common@20.3.34
@angular/common fixed: Latest secure release
npm install @angular/common@Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @angular/common

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-111753, inspect your project dependencies using npm:

npm ls @angular/common

Analyze the terminal output to locate any version of @angular/common in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 21.0.3), your application is affected.

Note: The npm ls @angular/common command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-359: Exposure of Private Personal Information to an Unauthorized Actor, where the product does not properly prevent a person's private, personal information from being accessed by actors who either (1) are not explicitly authorized to access the information or (2) do not have the implicit consent of the person about whom the information is collected. In @angular/common, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

An incomplete fix for [GHSA-58c5-g7wp-6w37](https://github.com/angular/angular/security/advisories/GHSA-58c5-g7wp-6w37) (`CVE-2025-66035`) in `@angular/common`'s HTTP Client (`HttpClient`) allows Cross-Site Request Forgery (XSRF) tokens to be leaked to attacker-controlled cross-origin domains when requests use URLs that exploit parsing discrepancies between regular expressions and the browser's WHATWG URL parser. ### Technical Description To address `CVE-2025-66035`, `xsrfInterceptorFn` introduced a regular expression (`const ABSOLUTE_URL_REGEX = /^(?:https?:)?\/\//i`) to detect and skip absolute and protocol-relative URLs before attaching the `X-XSRF-TOKEN` header. However, browsers resolve request URLs passed to `fetch()` and `XMLHttpRequest.open()` using the **WHATWG URL parser**. For `http:` and `https:` schemes, the WHATWG URL standard performs several normalizations prior to resolving the authority/origin: * Backslashes (`\`) are treated as forward slashes (`/`) — e.g., `/\evil.example/x`, `\\evil.example/x`, `\/evil.example/x`, `https:\\evil.example/x`, `https:/\evil.example/x`. * Leading and trailing C0 control characters and spaces (`<= 0x20`) are stripped — e.g., `' //evil.example/x'`, `'\0//evil.example/x'`, `'\x1f//evil.example/x'`. * ASCII tab (`\t`), newline (`\n`), and carriage return (`\r`) characters are removed anywhere in the input — e.g., `'/\t/evil.example/x'`, `'/\n/evil.example/x'`, `'htt\tps://evil.example/x'`. Because these URLs do not match `/^(?:https?:)?\/\//i`, `xsrfInterceptorFn` treats them as relative same-origin URLs and attaches the `X-XSRF-TOKEN` header, while the browser resolves and dispatches the request to the cross-origin host (`evil.example`). Note: Angular `21.0.3+` and `22.x` replaced the regular expression with a WHATWG `new URL(req.url, locationOrigin)` origin comparison in [#65683](https://github.com/angular/angular/pull/65683) and were already unaffected. However, the `20.3.x` LTS branch retained the regular expression until `20.3.34`. ### Impact The token leakage bypasses Angular's built-in XSRF protection on affected versions, allowing an attacker to capture the user's valid `X-XSRF-TOKEN` header if their server permits the request and custom header via CORS. Once obtained, the attacker can perform Cross-Site Request Forgery (CSRF) attacks against the victim user's session. ### Attack Preconditions 1. The victim's Angular application must have **XSRF protection enabled** (enabled by default in `HttpClient`). 2. The attacker must be able to make the application send a state-changing HTTP request (e.g., `POST`, `PUT`, `DELETE`, `PATCH`) to a URL they control (such as `/\attacker.example/api` or ` //attacker.example/api`). ### Patches The issue is resolved by parsing and comparing the request URL's origin against the application's current origin using the standard `URL` constructor (`new URL(req.url, locationOrigin)`). * `21.0.3` (and all `22.x` releases) * `20.3.34` ### Workarounds If you cannot immediately upgrade to a patched version: * Validate and normalize outgoing request URLs using `new URL(url, window.location.origin)` and verify that `parsedUrl.origin === window.location.origin` before passing dynamic URLs to mutating `HttpClient` requests. * Avoid passing untrusted or user-controlled URLs to `HttpClient` mutating methods.

CVE-2026-111753 Affected @angular/common Versions

3 component(s)
Fixed Versions:
21.0.320.3.34
Product / Package Ecosystem Affected Versions Fixed Version
@angular/common
npm
≥ 21.0.0
< 21.0.3
21.0.3
@angular/common
npm
≥ 20.0.0
< 20.3.34
20.3.34
@angular/common
npm
≤ 19.2.25

References

Frequently Asked Questions

What is CVE-2026-111753?
CVE-2026-111753 is a security vulnerability in @angular/common involving XSRF Token Leakage via URL Parsing Discrepancy in Angular HTTP Client (Incomplete fix for CVE-2025-66035) under CWE-359: Exposure of Private Personal Information to an Unauthorized Actor.
Which @angular/common versions are affected?
Affected versions include releases prior to 21.0.3, 20.3.34 across affected packages: @angular/common.
What version fixes CVE-2026-111753?
Upgrading to 21.0.3, 20.3.34 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @angular/common affected?
Yes, @angular/common is affected in releases prior to 21.0.3, 20.3.34, Latest secure release. Upgrade your dependency to 21.0.3, 20.3.34, Latest secure release or later.
What CWE is associated with CVE-2026-111753?
CVE-2026-111753 is classified under CWE-359: Exposure of Private Personal Information to an Unauthorized Actor (The product does not properly prevent a person's private, personal information from being accessed by actors who either (1) are not explicitly authorized to access the information or (2) do not have the implicit consent of the person about whom the information is collected.).
How can I check npm dependencies for CVE-2026-111753?
Run the dependency tree command: 'npm ls @angular/common'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jfgx-762w-99vr",
  "modified" : "2026-11-18T00:39:05Z",
  "published" : "2026-10-20T20:37:57Z",
  "aliases" : [ "CVE-2026-111753" ],
  "summary" : "@angular/common: XSRF Token Leakage via URL Parsing Discrepancy in Angular HTTP Client (Incomplete fix for CVE-2025-66035)",
  "details" : "An incomplete fix for [GHSA-58c5-g7wp-6w37](https://github.com/angular/angular/security/advisories/GHSA-58c5-g7wp-6w37) (`CVE-2025-66035`) in `@angular/common`'s HTTP Client (`HttpClient`) allows Cross-Site Request Forgery (XSRF) tokens to be leaked to attacker-controlled cross-origin domains when requests use URLs that exploit parsing discrepancies between regular expressions and the browser's WHATWG URL parser.\n\n### Technical Description\n\nTo address `CVE-2025-66035`, `xsrfInterceptorFn` introduced a regular expression (`const ABSOLUTE_URL_REGEX = /^(?:https?:)?\\/\\//i`) to detect and skip absolute and protocol-relative URLs before attaching the `X-XSRF-TOKEN` header.\n\nHowever, browsers resolve request URLs passed to `fetch()` and `XMLHttpRequest.open()` using the **WHATWG URL parser**. For `http:` and `https:` schemes, the WHATWG URL standard performs several normalizations prior to resolving the authority/origin:\n* Backslashes (`\\`) are treated as forward slashes (`/`) — e.g., `/\\evil.example/x`, `\\\\evil.example/x`, `\\/evil.example/x`, `https:\\\\evil.example/x`, `https:/\\evil.example/x`.\n* Leading and trailing C0 control characters and spaces (`<= 0x20`) are stripped — e.g., `' //evil.example/x'`, `'\\0//evil.example/x'`, `'\\x1f//evil.example/x'`.\n* ASCII tab (`\\t`), newline (`\\n`), and carriage return (`\\r`) characters are removed anywhere in the input — e.g., `'/\\t/evil.example/x'`, `'/\\n/evil.example/x'`, `'htt\\tps://evil.example/x'`.\n\nBecause these URLs do not match `/^(?:https?:)?\\/\\//i`, `xsrfInterceptorFn` treats them as relative same-origin URLs and attaches the `X-XSRF-TOKEN` header, while the browser resolves and dispatches the request to the cross-origin host (`evil.example`).\n\nNote: Angular `21.0.3+` and `22.x` replaced the regular expression with a WHATWG `new URL(req.url, locationOrigin)` origin comparison in [#65683](https://github.com/angular/angular/pull/65683) and were already unaffected. However, the `20.3.x` LTS branch retained the regular expression until `20.3.34`.\n\n### Impact\n\nThe token leakage bypasses Angular's built-in XSRF protection on affected versions, allowing an attacker to capture the user's valid `X-XSRF-TOKEN` header if their server permits the request and custom header via CORS. Once obtained, the attacker can perform Cross-Site Request Forgery (CSRF) attacks against the victim user's session.\n\n### Attack Preconditions\n\n1. The victim's Angular application must have **XSRF protection enabled** (enabled by default in `HttpClient`).\n2. The attacker must be able to make the application send a state-changing HTTP request (e.g., `POST`, `PUT`, `DELETE`, `PATCH`) to a URL they control (such as `/\\attacker.example/api` or ` //attacker.example/api`).\n\n### Patches\n\nThe issue is resolved by parsing and comparing the request URL's origin against the application's current origin using the standard `URL` constructor (`new URL(req.url, locationOrigin)`).\n\n* `21.0.3` (and all `22.x` releases)\n* `20.3.34`\n\n### Workarounds\n\nIf you cannot immediately upgrade to a patched version:\n* Validate and normalize outgoing request URLs using `new URL(url, window.location.origin)` and verify that `parsedUrl.origin === window.location.origin` before passing dynamic URLs to mutating `HttpClient` requests.\n* Avoid passing untrusted or user-controlled URLs to `HttpClient` mutating methods.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@angular/common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "21.0.0"
      }, {
        "fixed" : "21.0.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@angular/common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "20.0.0"
      }, {
        "fixed" : "20.3.34"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@angular/common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "19.2.25"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/security/advisories/GHSA-jfgx-762w-99vr"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-111753"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/issues/71294"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/pull/65683"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/pull/71295"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/commit/0659d11c854c9c6b886a2e925afef98d70bb005f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/commit/20474d3f0fd7c64071add6e84acf720627e5c19b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/commit/933ce817d53e25926844fa56af8230816763d08e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/angular/angular"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/releases/tag/21.0.3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/releases/tag/v20.3.34"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-201", "CWE-359" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-20T20:37:57Z",
    "nvd_published_at" : "2026-11-05T21:18:35Z"
  }
}