@angular/compiler@21.2.1 vulnerabilities

Angular - the compiler library

  • latest version

    21.2.4

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    5 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
    • L
    Cross-site Scripting (XSS)

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in the handling of internationalized attribute bindings. An attacker can execute arbitrary scripts in the context of the application by injecting malicious input into attributes such as href, src, or similar, when these are marked for internationalization and bound to unsanitized user data.

    Note: This is only exploitable if unsanitized user input is bound to a security-sensitive attribute that is also marked with an i18n-<attribute> directive on the same element.

    How to fix Cross-site Scripting (XSS)?

    Upgrade @angular/compiler to version 19.2.20, 20.3.18, 21.2.4, 22.0.0-next.3 or higher.

    <19.2.20>=20.0.0-next.0 <20.3.18>=21.0.0-next.0 <21.2.4>=22.0.0-next.0 <22.0.0-next.3