@angular/compiler@19.0.0-rc.1 vulnerabilities

Angular - the compiler library

  • latest version

    21.0.5

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    2 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @angular/compiler 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)

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via incomplete sanitization of certain SVG and MathML attributes, including xlink:href, math|href, as well as the attributeName attribute of SVG animation elements when it is bound to href or xlink:href. An attacker can execute arbitrary JavaScript code in the context of the application by injecting a javascript: URL payload into these attributes, which is then triggered either by user interaction or automatically through animation.

    How to fix Cross-site Scripting (XSS)?

    Upgrade @angular/compiler to version 19.2.17, 20.3.15, 21.0.2 or higher.

    <19.2.17>=20.0.0-next.0 <20.3.15>=21.0.0-next.0 <21.0.2