Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @angular/ssr
  4. ›
  5. CVE-2026-27739

CVE-2026-27739: Angular SSR is vulnerable to SSRF and Header Injection via request handling pipeline

February 25, 2026

A Server-Side Request Forgery (SSRF) vulnerability has been identified in the Angular SSR request handling pipeline. The vulnerability exists because Angular’s internal URL reconstruction logic directly trusts and consumes user-controlled HTTP headers specifically the Host and X-Forwarded-* family to determine the application’s base origin without any validation of the destination domain.

Specifically, the framework didn’t have checks for the following:

  • Host Domain: The Host and X-Forwarded-Host headers were not checked to belong to a trusted origin. This allows an attacker to redefine the “base” of the application to an arbitrary external domain.
  • Path & Character Sanitization: The X-Forwarded-Host header was not checked for path segments or special characters, allowing manipulation of the base path for all resolved relative URLs.
  • Port Validation: The X-Forwarded-Port header was not verified as numeric, leading to malformed URI construction or injection attacks.

This vulnerability manifests in two primary ways:

  • Implicit Relative URL Resolution: Angular’s HttpClient resolves relative URLs against this unvalidated and potentially malformed base origin. An attacker can “steer” these requests to an external server or internal service.
  • Explicit Manual Construction: Developers injecting the REQUEST object to manually construct URLs (for fetch or third-party SDKs) directly inherit these unsanitized values. By accessing the Host / X-Forwarded-* headers, the application logic may perform requests to attacker-controlled destinations or malformed endpoints.

References

  • angular.dev/best-practices/security
  • developer.mozilla.org/en-US/docs/Web/Security/Attacks/SSRF
  • github.com/advisories/GHSA-x288-3778-4hhx
  • github.com/angular/angular-cli
  • github.com/angular/angular-cli/pull/32516
  • github.com/angular/angular-cli/security/advisories/GHSA-x288-3778-4hhx
  • nvd.nist.gov/vuln/detail/CVE-2026-27739

Code Behaviors & Features

Detect and mitigate CVE-2026-27739 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 19.2.21, all versions starting from 20.0.0-next.0 before 20.3.17, all versions starting from 21.0.0-next.0 before 21.1.5, all versions starting from 21.2.0-next.0 before 21.2.0-rc.1

Fixed versions

  • 21.2.0-rc.1
  • 21.1.5
  • 20.3.17
  • 19.2.21

Solution

Upgrade to versions 19.2.21, 20.3.17, 21.1.5, 21.2.0-rc.1 or above.

Impact 9.3 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

npm/@angular/ssr/CVE-2026-27739.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 26 Feb 2026 12:19:34 +0000.