@angular/ssr@0.0.0-PLACEHOLDER

Angular server side rendering utilities

  • latest version

    22.3.0

  • latest non vulnerable version

  • first published

    3 years ago

  • latest version published

    5 days ago

  • Direct Vulnerabilities

    Known vulnerabilities in the @angular/ssr package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Directory Traversal

    @angular/ssr is a the Angular server side rendering utilities.

    Affected versions of this package are vulnerable to Directory Traversal in the prerendered page lookup of CommonEngine in packages/angular/ssr/node/src/common-engine/common-engine.ts, which confirms containment with pagePath.startsWith(normalize(publicPath)), a string prefix comparison that accepts any sibling directory whose name begins with the public directory's name. An attacker can read prerendered HTML belonging to such a sibling directory by requesting a path containing backslash traversal sequences, which join() resolves as path separators on Windows. This requires a Windows deployment using CommonEngine with relative URLs passed to render(), a sibling directory that shares a name prefix with the public directory, and a target file carrying the Angular SSG marker, so the reachable content is limited to prerendered pages.

    Note: This is only exploitable on Windows deployments, where backslash directory traversal sequences in a request path can escape the publicPath boundary.

    How to fix Directory Traversal?

    Upgrade @angular/ssr to version 20.3.36, 21.2.23, 22.1.7, 22.2.0-next.6 or higher.

    <20.3.36>=21.0.0 <21.2.23>=22.0.0 <22.1.7>=22.2.0-next.0 <22.2.0-next.6
    • C
    Server-side Request Forgery (SSRF)

    @angular/ssr is a the Angular server side rendering utilities.

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the request handling pipeline due to improper validation of user-controlled HTTP headers such as Host and X-Forwarded-*. An attacker can redirect internal server requests to arbitrary external or internal destinations, potentially exfiltrating sensitive data or probing internal networks by manipulating these headers to influence URL resolution and request routing.

    Note:

    This is only exploitable if the application uses server-side rendering, performs HTTP requests using relative URLs or constructs URLs from unvalidated headers, and the infrastructure does not sanitize or validate incoming headers.

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade @angular/ssr to version 19.2.21, 20.3.17, 21.1.5, 21.2.0-rc.0 or higher.

    <19.2.21>=20.0.0-next.0 <20.3.17>=21.0.0-next.0 <21.1.5>=21.2.0-next.0 <21.2.0-rc.0
    • H
    Race Condition

    @angular/ssr is a the Angular server side rendering utilities.

    Affected versions of this package are vulnerable to Race Condition between multiple concurrent requests in the global platform injector, when using the bootstrapApplication, getPlatform, or destroyPlatform functions. This allows data (including sensitive data) to be leaked between requests and included in rendered content or response headers for the wrong request.

    Note: The CLI is vulnerable even if an application is not explicitly using getPlatform, and exposes this vulnerability if exposed to remote connections.

    How to fix Race Condition?

    Upgrade @angular/ssr to version 18.2.21, 19.2.16, 20.3.0, 21.0.0-next.3 or higher.

    <18.2.21>=19.0.0-next.0 <19.2.16>=20.0.0-next.0 <20.3.0>=21.0.0-next.0 <21.0.0-next.3