build(deps): update dependency @angular/platform-server to v20.3.19 [security]#769
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
build(deps): update dependency @angular/platform-server to v20.3.19 [security]#769renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
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.0→20.3.19Angular: SSRF via protocol-relative and backslash URLs in Angular Platform-Server
GHSA-45q2-gjvg-7973
More information
Details
Impact
A Server-Side Request Forgery (SSRF) vulnerability exists in
@angular/platform-serverdue to improper handling of URLs during Server-Side Rendering (SSR).When an attacker sends a request such as
GET /\evil.com/ HTTP/1.1the server engine (Express, etc.) passes the URL string to Angular’s rendering functions.Because the URL parser normalizes the backslash to a forward slash for HTTP/HTTPS schemes, the internal state of the application is hijacked to believe the current origin is
evil.com. This misinterpretation tricks the application into treating the attacker’s domain as the local origin. Consequently, any relativeHttpClientrequests orPlatformLocation.hostnamereferences are redirected to the attacker controlled server, potentially exposing internal APIs or metadata services.Affected APIs:
renderModulerenderApplicationCommonEngine(from@angular/ssr)Non-Affected APIs:
AngularAppEngine(from@angular/ssr)AngularNodeAppEngine(from@angular/ssr)Attack Preconditions
req.url).HttpClientwith relative URLs or usesPlatformLocation.hostnameto build URLs.Patches
Workarounds
Developers should implement a middleware to sanitize the request URL before it reaches Angular. This involves stripping or normalizing leading slashes:
References
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/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)
v20.3.19Compare Source
platform-server
v20.3.18Compare Source
compiler
core
v20.3.17Compare 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
03da204)core
v20.3.16Compare Source
core
v20.3.15Compare Source
compiler
attributeNameand MathML/SVG URLsv20.3.14Compare Source
http
v20.3.13Compare Source
v20.3.12Compare Source
v20.3.11Compare Source
common
compiler
core
v20.3.10Compare Source
compiler-cli
migrations
v20.3.9Compare Source
v20.3.7Compare Source
animations
Element.animateexceptions (#64506)compiler
compiler-cli
core
router
v20.3.6Compare Source
core
platform-browser
DomEventsPluginshould always be the last plugin to be called forsupports(). (#50394)v20.3.5Compare Source
compiler-cli
core
animate.leavefunction bindings (#64413)migrations
router
v20.3.4Compare Source
core
migrations
v20.3.3Compare Source
compiler
core
migrations
v20.3.2Compare Source
compiler-cli
core
Resource.hasValue()(#63994)animate.leave(#63921)forms
FormResetEventwhen resetting control (#64034)migrations
v20.3.1Compare Source
compiler
attributeNameand MathML/SVG URLsConfiguration
📅 Schedule: (in timezone Europe/Madrid)
* 9-21 * * 1-5)🚦 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.