@angular/compiler@20.3.27

Angular - the compiler library

  • latest version

    22.2.0

  • latest non vulnerable version

  • first published

    10 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
    • M
    Cross-site Scripting (XSS)

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via incorrect computation of security contexts for host bindings. The ingestHostBinding function and the sanitizer resolution pipeline fail to evaluate security contexts against the concrete host element, including host directives, inherited directives, dynamically applied directives, and elements supplied via createComponent hostElement, allowing an attacker to inject unsanitized values into security-sensitive properties (such as href or xlink:href on SVG and MathML elements) through Angular host bindings, leading to cross-site scripting.

    How to fix Cross-site Scripting (XSS)?

    Upgrade @angular/compiler to version 20.3.28, 21.2.20, 22.1.0 or higher.

    <20.3.28>=21.0.0 <21.2.20>=22.0.0 <22.1.0