@angular/platform-server@21.2.24

Angular - library for using Angular in Node.js

  • latest version

    22.3.0

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    3 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @angular/platform-server 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
    Open Redirect

    @angular/platform-server is an Angular - library for using Angular in Node.js

    Affected versions of this package are vulnerable to Open Redirect via the resolveUrl function in packages/platform-server/src/url.ts, where WHATWG URL dot-segment normalization is applied after the raw-string protocol-relative check. An attacker can supply a path such as /.//evil.test, which passes the initial // prefix guard but is normalized by the WHATWG URL parser into a pathname beginning with //, producing a protocol-relative open redirect in SSR that corrupts ServerPlatformLocation.

    How to fix Open Redirect?

    Upgrade @angular/platform-server to version 20.3.33, 21.2.25, 22.2.1 or higher.

    <20.3.33>=21.0.0 <21.2.25>=22.0.0 <22.2.1