Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Angular SSR endpoint
-
DeliverySend request with absolute-form URL targeting attacker host
-
ExploitServerPlatformLocation adopts attacker hostname
-
ExecutionRelative HttpClient calls resolve to attacker or internal metadata host
-
ImpactExfiltrate internal API responses or cloud credentials
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target must run @angular/platform-server in SSR mode (renderModule or renderApplication) and pass the incoming request's URL into the renderer's url option without first validating the hostname - this is the pattern used in Angular's own server.ts integration templates, so default scaffolded SSR apps are likely vulnerable. The application must additionally issue at least one relative HttpClient request (or read PlatformLocation.hostname) during rendering for the SSRF to have observable impact, and the SSR Node process must be able to reach the attacker-controlled or internal target host (e.g., a cloud metadata endpoint) over the network. Exploitation is limited by reverse proxies or front-end servers that rewrite absolute-form request targets to origin-form, by explicit host validation in the server entry point, and by upgrade to 19.2.22 / 20.3.21 / 21.2.13 / 22.0.0-next.12 with the allowedHosts option configured. |
| Impact | The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N indicates trivial network-reachable exploitation against vulnerable SSR deployments, with high confidentiality impact on the vulnerable system (VC:H) and limited integrity/scope impact (VI:L, SC:L, SI:L), yielding a base score of 8.8. EPSS, however, is only 0.05% (16th percentile), and the CVE is not on CISA KEV, suggesting it is not being mass-exploited - consistent with the fact that exploitability depends on a server actually forwarding req.url unsanitized into renderModule/renderApplication, which is the default pattern in Angular's own server.ts templates and therefore likely common but not universal. No public exploit identified at time of analysis. The realistic priority is high for any team running Angular SSR exposed to untrusted HTTP clients, particularly in cloud environments where SSRF can pivot to IMDS (169.254.169.254) and steal instance credentials; it is materially lower for SSR servers fronted by a reverse proxy that rewrites or strips absolute-form request targets. |
| Exploit ScenarioDerived | An attacker sends an HTTP request to an Angular SSR endpoint using absolute-form request-target syntax such as 'GET http://attacker.example/some/route HTTP/1.1', which Node/Express exposes as req.url and which the application forwards unmodified into renderApplication({ url: req.url }). During rendering, any component that issues a relative HttpClient call (e.g., HttpClient.get('/api/profile')) is resolved against attacker.example, sending the server's request - potentially with internal cookies, tokens, or IMDS access - to the attacker. No public exploit identified at time of analysis, but the upstream patch and PR diff make the trigger pattern trivial to reproduce. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 22, 2026
Server-Side Request Forgery in @angular/platform-server allows remote unauthenticated attackers to hijack the SSR hostname by supplying an absolute-form URL to the rendering entry points, causing relative HttpClient calls and PlatformLocation references to be redirected to attacker-controlled domains. Affected versions span the 19.x, 20.x, 21.x, and 22.0.0-next branches, and exploitation can expose internal APIs or cloud metadata services. No public exploit identified at time of analysis, EPSS is very low at 0.05%, but the upstream fix and clear reproduction path raise the practical risk for exposed SSR deployments.
Earlier versions of this analysis (2)
Server-Side Request Forgery in @angular/platform-server allows remote unauthenticated attackers to hijack the SSR engine's hostname by supplying an absolute-form URL, causing relative HttpClient requests and PlatformLocation.hostname references to be redirected to attacker-controlled domains. The flaw affects Angular SSR versions 19.x through 22.0.0-next prior to the fixed releases and risks exposure of internal APIs and cloud metadata services. No public exploit identified at time of analysis, EPSS is low (0.05%), and an upstream patch is available via the allowedHosts allowlist mechanism.
Server-Side Request Forgery in @angular/platform-server allows remote attackers to hijack the server-side rendering (SSR) hostname by supplying an absolute-form URL, causing relative HttpClient requests and PlatformLocation.hostname references to resolve against an attacker-controlled domain. The flaw affects Angular SSR applications that pass an unvalidated request URL into renderModule or renderApplication, enabling pivoting to internal APIs or cloud metadata endpoints. No public exploit identified at time of analysis, and the issue is not listed in CISA KEV.
RemediationAI
Vendor-released patch: upgrade @angular/platform-server to 19.2.22, 20.3.21, 21.2.13, or 22.0.0-next.12 depending on your major version, per GHSA-rfh7-fxqc-q52v and PR https://github.com/angular/angular/pull/68570, and pass the new allowedHosts option to renderModule/renderApplication listing only your trusted SSR hostnames (wildcards like '*.example.com' or '*' are supported but '*' disables the protection). If you cannot patch immediately, normalize or validate req.url in your Express/Node entry point before handing it to the renderer - either reject requests whose Host header does not match an allowlist (with HTTP 403, accepting that legitimate clients using unexpected host headers will be blocked) or strip the absolute-form portion and pass only a relative path to renderModule/renderApplication, which preserves routing but loses access to the original host for any code that legitimately depends on PlatformLocation.hostname. Putting Angular SSR behind a reverse proxy (nginx, ALB) that rewrites the request line to origin-form is an additional defense, but does not substitute for upgrading since some proxies forward absolute-form URLs unchanged.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 6 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in @angular/platform-server, the Node.js-side runtime that performs Angular Server-Side Rendering via renderModule and renderApplication. Internally, ServerPlatformLocation derives the 'current' hostname from the request URL passed into the renderer; when that URL is absolute (scheme + host), the host portion is adopted as the SSR origin. Any later HttpClient request using a relative path is then resolved against that attacker-controlled host, and PlatformLocation.hostname reflects the same value. This is a textbook CWE-918 (SSRF) caused by trusting an externally controlled URL as a server-side request target. The patch (PR #68570) adds an allowedHosts option and an isHostAllowed check inside validateAllowedHosts, which parses the URL with URL.canParse, extracts the hostname, and rejects requests whose host is not in the configured allowlist (with '*' and '*.domain' wildcard support).
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:L/SI:L/SA:N
Network-reachable SSR endpoint with no auth or user interaction; SSRF crosses a security boundary into internal/metadata services (S:C), yielding high confidentiality, limited integrity, no availability impact.
Primary rating from Vendor (https://github.com/angular/angular).
CVSS VectorVendor: https://github.com/angular/angular
Lifecycle Timeline
3DescriptionCVE.org
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 internal ServerPlatformLocation can be manipulated into adopting the attacker-controlled domain as the "current" hostname.
Consequently, any relative HttpClient requests or PlatformLocation.hostname references 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
- 22.0.0-next.12
- 21.2.13
- 20.3.21
- 19.2.22
Workarounds
Developers unable to update immediately should implement strict URL validation in their server entry point (e.g., server.ts). Ensure that req.url is validated against a known list of trusted hostnames or normalized to a relative path before being passed torenderApplication or renderModule.
// Example manual normalization in Express
app.get('*', (req, res, next) => {
const trustedHost = 'localhost:4000';
// Ensure the request target matches expectations
if (req.headers.host !== trustedHost) {
return res.status(403).send('Forbidden');
}
next();
});Executive ViewAI
@angular/platform-server SSRF vulnerability (CVE-2026-46417) enables unauthenticated attackers to redirect application requests to external domains, potentially exposing internal APIs and cloud metadata services. Despite no public exploit identified at time of analysis, organizations running Angular Server-Side Rendering in production face direct risk of data exfiltration if exploited.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
EUVD-2026-38294
GHSA-rfh7-fxqc-q52v
NVD
CVE.org
EPSS
VulDB
Exploit-DB