llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · @angular/platform-server

GHSA-RFH7-FXQC-Q52V

@angular/platform-server: SSRF via Hostname Hijacking

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche4 versionesPrimer parche a -11 d de la divulgación
Exposición184 dDesde la divulgación, 19 may 2026, 3:29 p. m.
Detección181 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 22.0.0-next.12
Parche 19.2.22 +1
Parche 21.2.13
Monitoreo
Detectada
8 may 26
12 may 26
13 may 26
19 may 26
15 jul 26
17 nov 26
20 nov 26
8 may 26
26 jun 26
14 ago 26
2 oct 26
20 nov 26
FechaFaseEventoDetalle
Remediación Parche 22.0.0-next.12 @angular/platform-server · -11 d desde divulgación
Remediación Parche 19.2.22 @angular/platform-server · -7 d desde divulgación
Remediación Parche 20.3.21 @angular/platform-server · -7 d desde divulgación
Remediación Parche 21.2.13 @angular/platform-server · -6 d desde divulgación
Divulgación Publicada GHSA-RFH7-FXQC-Q52V divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
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 to`renderApplication` 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();
});
Versiones

Rangos afectados

Afectada Corregida Última
@angular/platform-server≤ 18.2.14
@angular/platform-server≥ 19.0.0-next.0 < 19.2.22
@angular/platform-server≥ 20.0.0-next.0 < 20.3.21
@angular/platform-server≥ 21.0.0-next.0 < 21.2.13
@angular/platform-server≥ 22.0.0-next.0 < 22.0.0-next.12
18.2.14
19.0.0-next.0
19.2.22
20.0.0-next.0
20.3.21
21.0.0-next.0
21.2.13
22.0.0-next.0
22.0.0-next.12
22.2.6
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npm@angular/platform-server
Corregida 19.2.22, 20.3.21, 21.2.13, 22.0.0-next.12 -7 d · -7 d · -6 d · -11 d 22.2.6 no afectada
Versiones corregidas19.2.2220.3.2121.2.1322.0.0-next.12
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-46417
Otrahttps://github.com/angular/angular/security/advisories/GHSA-rfh7-fxqc-q52v
Otrahttps://github.com/angular/angular/pull/68570
Otrahttps://access.redhat.com/security/cve/CVE-2026-46417
Otrahttps://bugzilla.redhat.com/show_bug.cgi?id=2491444
Otrahttps://github.com/angular/angular
Otrahttps://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-46417.json

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.