chore(deps): update dependency @angular/platform-server@>=20.0.0-next.0 <20.3.19 to v21 [security]#33641
Open
renovate[bot] wants to merge 1 commit into
Conversation
524fa18 to
5e6982c
Compare
5e6982c to
b795efc
Compare
b795efc to
90ce3b3
Compare
90ce3b3 to
a8fcbc0
Compare
a8fcbc0 to
0a3cf8a
Compare
….0 <20.3.19 to v21 [security]
0a3cf8a to
2dace60
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.19→^21.2.13](https://renovatebot.com/diffs/npm/@angular%2fplatform-server@>=20.0.0-next.0 <20.3.19/20.3.19/21.2.13)Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
@angular/platform-server: SSRF via Hostname Hijacking
CVE-2026-46417 / GHSA-rfh7-fxqc-q52v
More information
Details
Impact
A Server-Side Request Forgery (SSRF) vulnerability exists in
@angular/platform-server. The issue stems from how the server-side rendering (SSR) engine processes the request URL provided to the rendering entry points.When an absolute-form URL (e.g.,
http://evil.com) is passed to the rendering engine, the internalServerPlatformLocationcan be manipulated into adopting the attacker-controlled domain as the "current" hostname.Consequently, any relative
HttpClientrequests orPlatformLocation.hostnamereferences are redirected to the attacker controlled server, potentially exposing internal APIs or metadata services.Fix Information
The vulnerability is mitigated by introducing an Allowlist Mechanism directly into the core rendering APIs.
The renderModule and renderApplication functions now include an allowedHosts configuration option. The rendering engine validates the hostname extracted from the request URL against this list before proceeding. If the hostname does not match an allowed entry, the engine prevents the hostname hijacking, ensuring that HttpClient requests remain restricted to trusted domains.
Patches
Workarounds
Developers unable to update immediately should implement strict URL validation in their server entry point (e.g.,
server.ts). Ensure thatreq.urlis validated against a known list of trusted hostnames or normalized to a relative path before being passed torenderApplicationorrenderModule.Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:L/SI:L/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
angular/angular (@angular/platform-server@>=20.0.0-next.0 <20.3.19)
v21.2.13Compare Source
core
platform-server
allowedHostsoption torenderModuleandrenderApplicationv21.2.12Compare Source
core
forms
v21.2.11Compare Source
common
compiler
core
platform-server
v21.2.10Compare Source
docs
migrations
router
browserUrlis usedv21.2.9Compare Source
core
http
platform-server
router
v21.2.8Compare Source
compiler
compiler-cli
core
language-service
v21.2.7Compare Source
compiler
compiler-cli
core
object[data]as resource URL context (#67797)localize
router
v21.2.6Compare Source
common
compiler
core
migrations
v21.2.5Compare Source
compiler
compiler-cli
core
migrations
service-worker
v21.2.4Compare Source
compiler
core
v21.2.3Compare Source
core
toString()representationv21.2.2Compare Source
compiler
compiler-cli
forms
v21.2.1Compare Source
docs
migrations
router
browserUrlis usedv21.2.0Compare Source
common
compiler
instanceofbinary operatorAstVisitor.visitEmptyExpr()compiler-cli
core
forms
language-server
onDidChangeWatchedFileslanguage-service
router
canMatchparamsIsActiveMatchOptionsAPIs to accept a Partialv21.1.6Compare Source
Breaking Changes
core
Angular now only applies known attributes from HTML in translated ICU content. Unknown attributes are dropped and not rendered.
(cherry picked from commit
306f367)common
compiler-cli
core
v21.1.5Compare Source
No user facing changes in this release
v21.1.4Compare Source
compiler
core
forms
http
v21.1.3Compare Source
core
linkedSignal.updateshould propagate errorsforms
localize
router
v21.1.2Compare Source
forms
language-service
router
v21.1.1Compare Source
compiler-cli
core
forms
v21.1.0Compare Source
Deprecations
upgrade
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, 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.