CVE-2025-62427 Details
Description
The Angular SSR is a server-rise rendering tool for Angular applications. The vulnerability is a Server-Side Request Forgery (SSRF) flaw within the URL resolution mechanism of Angular'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'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('assets/data.json')) will be incorrectly resolved against the attacker'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.
A Server-Side Request Forgery (SSRF) vulnerability has been identified in the Angular CLI's Server-Side Rendering package (@angular/ssr) versions 19.0.0-next.0 prior to 19.2.18, 20.0.0-next.0 prior to 20.3.6, and 21.0.0-next.0 prior to 21.0.0-next.8. The vulnerability arises in the 'createRequestUrl' function, which uses the native URL constructor to resolve request paths. When a path begins with a double forward slash or backslash, the URL constructor interprets it as schema-relative, overriding the intended base URL with an attacker-controlled hostname. This manipulation can redirect subsequent relative HTTP requests made during the SSR process to the attacker's domain, potentially leading to content injection or other security risks.
Users can upgrade to Angular CLI '@angular/ssr' versions 19.2.18, 20.3.6, or 21.0.0-next.8. If an upgrade is not possible, implement a middleware on the Node.js/Express server to reject or sanitize requests that begin with a double slash.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 16, 2025CISA-ADP
Assessed Oct 16, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/angular/angular-cli/commit/5271547c80662de10cb3bcb648779a83f6efedfb | [email protected] | Source CodeVendor |
| https://github.com/angular/angular-cli/security/advisories/GHSA-q63q-pgmf-mxhr | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| @angular/ssr | All versions |
CPE
Remediation
| |
| @angular/cli | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 9, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 17, 2025 | CVE Modified | [email protected] |
| Oct 16, 2025 | New CVE Received | [email protected] |
Volerion