@angular/core@21.2.0-rc.0 vulnerabilities

Angular - the core framework

  • latest version

    21.2.0

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    1 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @angular/core 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
    • H
    Cross-site Scripting (XSS)

    @angular/core is a package that lets you write client-side web applications as if you had a smarter browser. It also lets you use HTML as your template language and lets you extend HTML’s syntax to express your application’s components clearly and succinctly.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the i18n pipeline when HTML from translated content in ICU messages is not properly sanitized. An attacker can execute arbitrary JavaScript in the application origin by compromising the translation file (such as xliff or xtb) and injecting malicious content.

    Note:

    This is only exploitable if the application uses Angular i18n, includes one or more ICU messages, renders an ICU message, and does not defend against script injection via a strict content security policy.

    How to fix Cross-site Scripting (XSS)?

    Upgrade @angular/core to version 19.2.19, 20.3.17, 21.1.6, 21.2.0 or higher.

    <19.2.19>=20.0.0-next.0 <20.3.17>=21.0.0-next.0 <21.1.6>=21.2.0-next.0 <21.2.0