Server-Side Request Forgery (SSRF) in Angular SSR
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-918 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| angular | angular-cli | 19.0.0-next.0 to before 19.2.18; 20.0.0-next.0 to before 20.3.6; 21.0.0-next.0 to before 21.0.0-next.8 | 19.2.18, 20.3.6, 21.0.0-next.8 | Patch available | CNA |
| — | @angular/ssr (npm) | 19.0.0-next.0 to before 19.2.18 | 19.2.18 | Patch available | GHSA-q63q-pgmf-mxhr |
| — | @angular/ssr (npm) | 20.0.0-next.0 to before 20.3.6 | 20.3.6 | Patch available | GHSA-q63q-pgmf-mxhr |
| — | @angular/ssr (npm) | 21.0.0-next.0 to before 21.0.0-next.8 | 21.0.0-next.8 | Patch available | GHSA-q63q-pgmf-mxhr |
- angular-cli Vendorangular Affected 19.0.0-next.0 to before 19.2.18; 20.0.0-next.0 to before 20.3.6; 21.0.0-next.0 to before 21.0.0-next.8 Fixed in 19.2.18, 20.3.6, 21.0.0-next.8 Patch available CNA
- @angular/ssr (npm) Vendor— Affected 19.0.0-next.0 to before 19.2.18 Fixed in 19.2.18 Patch available GHSA-q63q-pgmf-mxhr
- @angular/ssr (npm) Vendor— Affected 20.0.0-next.0 to before 20.3.6 Fixed in 20.3.6 Patch available GHSA-q63q-pgmf-mxhr
- @angular/ssr (npm) Vendor— Affected 21.0.0-next.0 to before 21.0.0-next.8 Fixed in 21.0.0-next.8 Patch available GHSA-q63q-pgmf-mxhr
Remediation
- Fix · CNA angular-cli (angular) Fixed in 19.2.18, 20.3.6, 21.0.0-next.8
- Fix · GHSA-q63q-pgmf-mxhr @angular/ssr (npm) Fixed in 19.2.18 Advisory →
- Fix · GHSA-q63q-pgmf-mxhr @angular/ssr (npm) Fixed in 20.3.6 Advisory →
- Fix · GHSA-q63q-pgmf-mxhr @angular/ssr (npm) Fixed in 21.0.0-next.8 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-62427
- 2026-10-03 Alias added: GHSA-q63q-pgmf-mxhr
References
More angular vulnerabilities
- TI-2026-74069 Infinite loop in Angular SSR HTML parser allows denial of service CVSS 4.0HIGH 8.7
- TI-2026-60076 Angular: SSRF and Cross-Origin Credential Disclosure via URL Resolution Discrepancy in SSR CVSS 4.0HIGH 8.6
- TI-2026-60080 Angular: SSR XSS via Unescaped <template> Content Across DocumentFragment Boundaries in Fallback Raw-Content Elements CVSS 4.0HIGH 8.6
- TI-2026-60078 Angular: SSR XSS via Unescaped Processing Instruction (<?...?>) Nodes in Fallback Raw-Content Elements CVSS 4.0HIGH 8.6
- TI-2026-22098 Angular SSR has an Open Redirect via X-Forwarded-Prefix CVSS 4.0MEDIUM 6.9
- TI-2025-37971 A reflected cross-site scripting (XSS) vulnerability in CKeditor v46.1.0 & Angular… CVSS 3.1MEDIUM 5.4
Sources
- CVE-2025-62427 · CVE Program
- CVE-2025-62427 · NVD
- FIRST EPSS
- GHSA-q63q-pgmf-mxhr · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences