chore(deps): update dependency @angular/ssr to v20.3.17 [security]#2432
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency @angular/ssr to v20.3.17 [security]#2432renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run-many --target=build --all |
❌ Failed | 1m 2s | View ↗ |
☁️ Nx Cloud last updated this comment at 2026-06-02 19:48:31 UTC
db0d473 to
e1245cc
Compare
auto-merge was automatically disabled
April 27, 2026 18:40
Pull request was closed
e1245cc to
ce91917
Compare
dbd0e1b to
4dc07e8
Compare
4dc07e8 to
823cef6
Compare
37646ba to
30c2771
Compare
30c2771 to
55e1b2c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR contains the following updates:
20.3.3→20.3.17Angular SSR has a Server-Side Request Forgery (SSRF) flaw
CVE-2025-62427 / GHSA-q63q-pgmf-mxhr
More information
Details
Impact
The vulnerability is a Server-Side Request Forgery (SSRF) flaw within the URL resolution mechanism of Angular's Server-Side Rendering package (
@angular/ssr).The function
createRequestUrluses the nativeURLconstructor. When an incoming request path (e.g.,originalUrlorurl) begins with a double forward slash (//) or backslash (\\), theURLconstructor treats it as a schema-relative URL. This behavior overrides the security-intended base URL (protocol, host, and port) supplied as the second argument, instead resolving the URL against the scheme of the base URL but adopting the attacker-controlled hostname.This allows an attacker to specify an external domain in the URL path, tricking the Angular SSR environment into setting the page's virtual location (accessible via
DOCUMENTorPlatformLocationtokens) to this attacker-controlled domain. Any subsequent relative HTTP requests made during the SSR process (e.g., usingHttpClient.get('assets/data.json')) will be incorrectly resolved against the attacker's domain, forcing the server to communicate with an arbitrary external endpoint.Exploit Scenario
A request to
http://localhost:4200//attacker-domain.com/some-pagecauses Angular to believe the host is attacker-domain.com. A relative request to api/data then becomes a server-side request tohttp://attacker-domain.com/api/data.Patches
@angular/ssr19.2.18@angular/ssr20.3.6@angular/ssr21.0.0-next.8Mitigation
The application's internal location must be robustly determined from the incoming request. The fix requires sanitizing or validating the request path to prevent it from being interpreted as a schema-relative URL (i.e., ensuring it does not start with
//).Server-Side Middleware
If you can't upgrade to a patched version, implement a middleware on the Node.js/Express server that hosts the Angular SSR application to explicitly reject or sanitize requests where the path begins with a double slash (
//).Example (Express/Node.js):
References
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Angular SSR has an Open Redirect via X-Forwarded-Prefix
CVE-2026-27738 / GHSA-xh43-g2fq-wjrj
More information
Details
An Open Redirect vulnerability exists in the internal URL processing logic in Angular SSR. The logic normalizes URL segments by stripping leading slashes; however, it only removes a single leading slash.
When an Angular SSR application is deployed behind a proxy that passes the
X-Forwarded-Prefixheader, an attacker can provide a value starting with three slashes (e.g.,///evil.com).redirectToor i18n locale switch).///evil.comas the prefix.//evil.com.Locationheader.//as a protocol-relative URL, redirecting the user fromhttps://your-app.comtohttps://evil.com.Impact
This vulnerability allows attackers to conduct large-scale phishing and SEO hijacking:
Attack Preconditions
X-Forwarded-Prefixheader to the SSR process without sanitization.X-Forwarded-Prefixheader.Patches
Workarounds
Until the patch is applied, developers should sanitize the
X-Forwarded-Prefixheader in theirserver.tsbefore the Angular engine processes the request:Resources
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Angular SSR is vulnerable to SSRF and Header Injection via request handling pipeline
CVE-2026-27739 / GHSA-x288-3778-4hhx
More information
Details
A Server-Side Request Forgery (SSRF) vulnerability has been identified in the Angular SSR request handling pipeline. The vulnerability exists because Angular’s internal URL reconstruction logic directly trusts and consumes user-controlled HTTP headers specifically the Host and
X-Forwarded-*family to determine the application's base origin without any validation of the destination domain.Specifically, the framework didn't have checks for the following:
HostandX-Forwarded-Hostheaders were not checked to belong to a trusted origin. This allows an attacker to redefine the "base" of the application to an arbitrary external domain.X-Forwarded-Hostheader was not checked for path segments or special characters, allowing manipulation of the base path for all resolved relative URLs.X-Forwarded-Portheader was not verified as numeric, leading to malformed URI construction or injection attacks.This vulnerability manifests in two primary ways:
HttpClientresolves relative URLs against this unvalidated and potentially malformed base origin. An attacker can "steer" these requests to an external server or internal service.REQUESTobject to manually construct URLs (for fetch or third-party SDKs) directly inherit these unsanitized values. By accessing theHost/X-Forwarded-*headers, the application logic may perform requests to attacker-controlled destinations or malformed endpoints.Impact
When successfully exploited, this vulnerability allows for arbitrary internal request steering. This can lead to:
Authorizationheaders or session cookies by redirecting them to an attacker's server.169.254.169.254) not exposed to the public internet.Attack Preconditions
HttpClientrequests using relative URLs OR manually construct URLs using the unvalidatedHost/X-Forwarded-*headers using theREQUESTobject.Patches
Workarounds
req.headersfor URL construction. Instead, use trusted variables for your base API paths.server.tsto enforce numeric ports and validated hostnames.References
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
angular/angular-cli (@angular/ssr)
v20.3.17Compare Source
@angular/ssr
v20.3.16Compare Source
@angular/cli
v20.3.15Compare Source
@angular/cli
@angular-devkit/build-angular
v20.3.14Compare Source
@angular/cli
v20.3.13Compare Source
@angular/cli
@modelcontextprotocol/sdkto v1.24.0v20.3.12Compare Source
@angular/build
@angular/ssr
X-Forwarded-PrefixandAPP_BASE_HREFin redirectsv20.3.11Compare Source
@angular/build
ɵgetOrCreateAngularServerAppis always defined after errorsv20.3.10Compare Source
@schematics/angular
tsconfig.spec.jsoninclude for spec files@angular/build
@angular/localizewhen having external packages (#31721)v20.3.9Compare Source
@angular/ssr
v20.3.8Compare Source
@angular-devkit/build-angular
@angular/build
v20.3.7Compare Source
@angular-devkit/schematics
--forceoption when schematic containshost.create@angular/build
viteto7.11.1@angular/ssr
v20.3.6Compare Source
@angular/ssr
v20.3.5Compare Source
@angular/build
v20.3.4Compare Source
@schematics/angular
process.env['pm_id']@angular-devkit/build-angular
InjectionTokenas pure for improved tree-shaking@angular/build
InjectionTokenas pure for improved tree-shakingConfiguration
📅 Schedule: (in timezone UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.