Skip to content

Update dependency @angular/common to v20.3.14 [SECURITY]#2585

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-angular-common-vulnerability
Open

Update dependency @angular/common to v20.3.14 [SECURITY]#2585
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-angular-common-vulnerability

Conversation

@renovate

@renovate renovate Bot commented May 9, 2026

Copy link
Copy Markdown
Contributor

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@angular/common (source) 20.1.620.3.14 age adoption passing confidence

Angular is Vulnerable to XSRF Token Leakage via Protocol-Relative URLs in Angular HTTP Client

CVE-2025-66035 / GHSA-58c5-g7wp-6w37

More information

Details

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.

Impact

The token leakage completely bypasses Angular's built-in CSRF protection, allowing an attacker to capture the user's valid XSRF token. Once the token is obtained, the attacker can perform arbitrary 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.
  2. The attacker must be able to make the application send a state-changing HTTP request (e.g., POST) to a protocol-relative URL (e.g., //attacker.com) that they control.
Patches
  • 19.2.16
  • 20.3.14
  • 21.0.1
Workarounds

Developers should avoid 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.

Severity

  • CVSS Score: 7.7 / 10 (High)
  • Vector String: 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

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

angular/angular (@​angular/common)

v20.3.14

Compare Source

http
Commit Type Description
0276479e7d fix prevent XSRF token leakage to protocol-relative URLs

v20.3.13

Compare Source

v20.3.12

Compare Source

v20.3.11

Compare Source

common
Commit Type Description
5047849a4a fix remove placeholder image listeners once view is removed
compiler
Commit Type Description
f9d0818087 fix support arbitrary nesting in :host-context()
106b9040df fix support commas in :host() argument
9419ea348a fix support complex selectors in :nth-child()
036c5d2a07 fix support one additional level of nesting in :host()
core
Commit Type Description
dcdd1bcdbb fix skip leave animations on view swaps

v20.3.10

Compare Source

compiler-cli
Commit Type Description
840db59dc1 fix make required inputs diagnostic less noisy
migrations
Commit Type Description
a45e6b2b66 fix Prevent removal of templates referenced with preceding whitespace characters

v20.3.9

Compare Source

v20.3.7

Compare Source

animations
Commit Type Description
bd38cd45a5 fix account for Element.animate exceptions (#​64506)
compiler
Commit Type Description
891f180262 fix correctly compile long numeric HTML entities (#​64297)
compiler-cli
Commit Type Description
371274bfc6 fix missingStructuralDirective diagnostic produces false negatives (#​64470)
core
Commit Type Description
4c89a267c3 fix pass element removal property through in all locations (#​64565)
2fad4d4ab6 fix prevent duplicate nodes from being retained with fast `animate.leave`` calls (#​64592)
router
Commit Type Description
cfd8ed3fff fix Fix outlet serialization and parsing with no primary children (#​64505)
182fe78f91 fix Surface parse errors in Router.parseUrl (#​64503)

v20.3.6

Compare Source

core
Commit Type Description
911d6822cb fix update animation scheduling (#​64441)
platform-browser
Commit Type Description
2ece42866d fix DomEventsPlugin should always be the last plugin to be called for supports(). (#​50394)

v20.3.5

Compare Source

compiler-cli
Commit Type Description
8dec92ff9f fix capture metadata for undecorated fields (#​63957) (#​64317)
c2e817b0ef perf fix performance of "interpolated signal not invoked" check (#​64410)
core
Commit Type Description
f15cfa4cc4 fix fixes regression in animate.leave function bindings (#​64413)
d54dd674ca fix Prevents early style pruning with leave animations (#​64335)
migrations
Commit Type Description
554573e524 fix migrating input with more than 1 usage in a method (#​64367)
2c79ca0b57 fix remove error for no matching files in control flow migration (#​64253) (#​64314)
router
Commit Type Description
6e4bcc7d22 fix Scroll restoration should use instant scroll behavior for traversals (#​64299)

v20.3.4

Compare Source

core
Commit Type Description
853ed169a8 fix ensure missing leave animations don't queue leave animations (#​64226)
6fed986b7a fix Fixes animations in conjunction with content projection (#​63776)
76fe5599fe fix handle undefined CSS time values in parseCssTimeUnitsToMs function (#​64181)
3b959105be fix prevent early exit from leave animations when multiple transitions are present (#​64225)
migrations
Commit Type Description
65884895ff fix preserve component imports when pruning NgModules in standalone migration (#​64186)

v20.3.3

Compare Source

compiler
Commit Type Description
f51ab32fb3 fix recover template literals with broken expressions (#​64150)
core
Commit Type Description
542cd0019a fix do not rename ARIA property bindings to attributes (#​64089)
0e928fbc4a fix Fixes animations in conjunction with content projection (#​63776)
e5157bd933 fix prevents unintended early termination of leave animations and hoisting (#​64088)
migrations
Commit Type Description
1710cbd7d4 fix handle shorthand property declarations in NgModule (#​64160)
77b6305a4b fix skip migration for inputs with 'this' references (#​64142)

v20.3.2

Compare Source

Deprecations

platform-server
  • XHR support in @angular/platform-server is deprecated. Use standard fetch APIs instead.
common
Commit Type Description
9f443bc24c fix Limits date format string length
566ad05f20 fix skip transfer cache for uncacheable HTTP traffic
1a62130a6b fix use cryptographically secure SHA-256 for transfer cache key generation
compiler
Commit Type Description
a68ec702a0 fix sanitize two-way properties
core
Commit Type Description
768a349e6e fix harden TransferState restoration against DOM clobbering
ca48b4728d fix validate lowercase SVG animation attribute names (#​69270)
http
Commit Type Description
06be298267 fix preserve empty referrer option in HttpRequest
fa940e1f4d fix Rejects non-HTTP(S) URLs in JSONP requests
e2ef1ce72a fix skip transfer cache for fetch credentialed requests
platform-server
Commit Type Description
49368c1859 fix harden platform location origin validation during SSR
d55c94ad81 refactor deprecate ServerXhr (#​69256)
service-worker
Commit Type Description
d65a5f457b fix Strips sensitive headers on cross-origin redirects

v20.3.1

Compare Source

platform-server
Commit Type Description
303d4cd580 fix prevent SSRF bypasses via protocol-relative and backslash URLs

v20.3.0

Compare Source

Breaking Changes

core
  • The server-side bootstrapping process has been changed to eliminate the reliance on a global platform injector.

    Before:

    const bootstrap = () => bootstrapApplication(AppComponent, config);

    After:

    const bootstrap = (context: BootstrapContext) =>
      bootstrapApplication(AppComponent, config, context);

    A schematic is provided to automatically update main.server.ts files to pass the BootstrapContext to the bootstrapApplication call.

    In addition, getPlatform() and destroyPlatform() will now return null and be a no-op respectively when running in a server environment.

    (cherry picked from commit 8bf80c9)

Commit Type Description
a3f808d7c8 fix remove refresh button from transfer state tab (#​63592)
core
Commit Type Description
6117ccee2e feat introduce BootstrapContext for improved server bootstrapping (#​63636)

v20.2.4

Compare Source

core
Commit Type Description
dc64f3e478 fix Fixed inject migration schematics for migrate destructured properties (#​62832)
platform-server
Commit Type Description
d1d32db972 fix prevent false warning for duplicate state serialization (#​63525)

v20.2.3

Compare Source

compiler
Commit Type Description
479a919f42 fix fixes regression with event parsing and animate prefix (#​63470)
core
Commit Type Description
f87fad3fff fix avoid injecting internal error handler from a destroyed injector (#​62275)
114906d2d6 fix Fix cancellation of animation enter classes (#​63442)
596b545130 fix Prevent an error on cleanup when an rxResource stream threw before returning an Observable (#​63342)

v20.2.2

Compare Source

compiler
Commit Type Description
d7b6045d61 fix fixes animations on elements with structural directives (#​63390)
core
Commit Type Description
6c421ed65d fix Ensures @for loop animations never get cancelled (#​63328)
9093e0e132 fix fix memory leak with leaving nodes tracking (#​63328)
c8f07daf8f fix Fixes animate.leave binding to a string with spaces (#​63366)

v20.2.1

Compare Source

compiler
Commit Type Description
a28672fb70 fix Keep paraenthesis in Nullish + Boolean expression. (#​63292)

v20.2.0

Compare Source

Deprecations

animations
core
router
  • The Router.getCurrentNavigation method is deprecated. Use the Router.currentNavigation signal instead.
  • The Router.getCurrentNavigation method is deprecated. Use the Router.currentNavigation signal instead.
animations
Commit Type Description
9766116cea refactor deprecate the animations package (#​62795)
compiler
Commit Type Description
7767aa640c fix allow more characters in square-bracketed attribute names (#​62742)
7b51728813 fix fixes animation event host bindings not firing (#​63217)
compiler-cli
Commit Type Description
5abfe4a899 feat add diagnostic for uninvoked functions in text interpolation (#​59191)
c4917074f1 fix display proper function in NG8117 message (#​62842)
812463c563 fix Ignore diagnostics on ngTemplateContextGuard lines in TCB (#​63054)
45b030b5ce fix prevent dom event assertion in TCB generation on older angular versions (#​63053)
core
Commit Type Description
6b1f4b9e8b feat add enter and leave animation instructions (#​62682)
cec91c0035 feat add option to infer the tag names of components in tests (#​62283)
141bb75ff2 feat Promote zoneless to stable (#​62699)
4138aca91f feat render ARIA property bindings as attributes (#​62630)
a409534d6c feat support as aliases on else if blocks (#​63047)
745ea44394 feat support TypeScript 5.9 (#​62541)
593cc8a368 fix checks if body exists before continuing (#​62768)
bdc31675b7 fix ensure animate events do not have duplicate elements (#​63216)
de3a0c5cf3 fix Fix animate.enter class removal when composing classes (#​62981)
6597ac0af7 fix fix support for space separated strings in leave animations (#​62979)
ebd622b344 fix fixes empty animations when recalculating styles (#​63007)
455b147488 fix fixes timing issues with enter animations (#​62925)
f9d73cc687 fix handle cases where classes added have no animations (#​63242)
6a1184600c fix prevents duplicate nodes when @if toggles with leave animations (#​63048)
063b5e166f fix switch check to documentElement with chaining (#​62773)
320de4e96d refactor deprecate animations field on component interface (#​62895)
forms
Commit Type Description
c353497a01 feat add support for pushing an array of controls to formarray (#​57102)
http
Commit Type Description
0984b30388 feat Add redirected property to HttpResponse and HttpErrorResponse (#​62675)
be811fee79 feat add referrer & integrity support for fetch requests in httpResource (#​62461)
1cf9d9064c feat Add support for fetch referrer & integrity options in HttpClient (#​62417)
1408baff45 fix Add missing timeout and transferCache options to HttpClient (#​62586)
language-service
Commit Type Description
c81e345e72 feat support auto-import for attribute completions (#​62797)
d64dd27a02 feat support to report the deprecated API in the template (#​62054)
591c7e2ec8 fix Support to resolve the re-export component. (#​62585)
platform-browser
Commit Type Description
52b8e07d6e feat Warns on conflicting hydration and blocking navigation (#​62963)
router
Commit Type Description
d00b3fed58 feat add a currentNavigation signal to the Router service. (#​62971)
687c374826 feat add a currentNavigation signal to the Router service. (#​63011)
9c45c322d1 fix ensure preloaded components are properly activated (#​62502)
service-worker
Commit Type Description
8255e0cf15 feat add messageerror event handling and logging (#​62834)
5220b51e75 feat Adds for type in provideServiceWorker (#​62831)
4ac6171b09 feat Adds support for updateViaCache in provideServiceWorker (#​62721)
b65c3d5e19 feat Improves storage full detection in data caching (#​62737)
3b214d2040 feat Logs unhandled promise rejections in service worker (#​63059)
6d011687ec feat notify clients about version failures (#​62718)

v20.1.8

Compare Source

compiler

| Commit | Type | Description

Note

PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot enabled auto-merge (squash) May 9, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants