{"id":71845,"date":"2025-10-16T22:45:35","date_gmt":"2025-10-16T19:15:35","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-62427-server-side-request-forgery-ssrf-in-angular-ssr\/"},"modified":"2025-10-16T22:45:35","modified_gmt":"2025-10-16T19:15:35","slug":"cve-2025-62427-server-side-request-forgery-ssrf-in-angular-ssr","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-62427-server-side-request-forgery-ssrf-in-angular-ssr\/","title":{"rendered":"CVE-2025-62427 &#8211; Server-Side Request Forgery (SSRF) in Angular SSR"},"content":{"rendered":"<p>CVE ID : CVE-2025-62427<\/p>\n<p>Published :  Oct. 16, 2025, 7:15 p.m. | 1\u00a0hour, 25\u00a0minutes ago<\/p>\n<p>Description : The Angular CLI is a command-line interface tool for Angular applications. The vulnerability is a Server-Side Request Forgery (SSRF) flaw within the URL resolution mechanism of Angular&#8217;s Server-Side Rendering package (@angular\/ssr) before 19.2.18, 20.3.6, and 21.0.0-next.8. The function createRequestUrl uses the native URL constructor. When an incoming request path (e.g., originalUrl or url) begins with a double forward slash (\/\/) or backslash (\\), the URL constructor 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&#8217;s virtual location (accessible via DOCUMENT or PlatformLocation tokens) to this attacker-controlled domain. Any subsequent relative HTTP requests made during the SSR process (e.g., using HttpClient.get(&#8216;assets\/data.json&#8217;)) will be incorrectly resolved against the attacker&#8217;s domain, forcing the server to communicate with an arbitrary external endpoint. This vulnerability is fixed in 19.2.18, 20.3.6, and 21.0.0-next.8.<\/p>\n<p>Severity: 8.7 | HIGH<\/p>\n<p>Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-62427 Published : Oct. 16, 2025, 7:15 p.m. | 1\u00a0hour, 25\u00a0minutes ago Description : The Angular CLI is a command-line interface tool for Angular applications. The vulnerability is a Server-Side Request Forgery (SSRF) flaw within the URL resolution mechanism of Angular&#8217;s Server-Side Rendering package (@angular\/ssr) before 19.2.18, 20.3.6, and 21.0.0-next.8. The function &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-71845","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/71845","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=71845"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/71845\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=71845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=71845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=71845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}