SCA: security update for @angular/compiler, @angular/core (GHSA-f3m7-gqxr-g87x)

medium Tenable Self-Hosted Container Security Plugin ID 443199

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- Angular is a development platform for building mobile and desktop web applications using
TypeScript/JavaScript and other languages. Prior to 22.0.0-rc.2, 21.2.15, 20.3.22 and 19.2.22, an issue in
the @angular/compiler and @angular/core packages allows bypassing element and attribute
sanitization/validation through specific namespace workarounds. Specifically, namespaced script elements
(e.g., <svg:script> or <:svg:script>) were not properly identified as script elements by the Angular
template preparser, allowing them to pass through template compilation without being stripped.
Furthermore, security context schema mappings for element attributes did not consistently handle
attributes within namespaced elements (like SVG and MathML), opening up gaps where malicious namespaced
attributes could bypass runtime and compile-time sanitizers. Combined, these flaws enable an attacker who
can inject or supply a template/tag structure with custom namespaces to bypass Angular's script-stripping
logic and attribute sanitizers, leading to client-side Cross-Site Scripting (XSS). This vulnerability is
fixed in 22.0.0-rc.2, 21.2.15, 20.3.22 and 19.2.22. (CVE-2026-50557)

Solution

Update the @angular/compiler library and its related packages to version 19.2.22 or later.

See Also

https://github.com/advisories/GHSA-f3m7-gqxr-g87x

Plugin Details

Severity: Medium

ID: 443199

Version: Revision 1.5

Type: Local

Family: SCA Checks

Published: 6/15/2026

Updated: 7/6/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 2.3

Percentile: 9.51

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 4.7

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:N

CVSS Score Source: CVE-2026-50557

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.3

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 5.3

Threat Score: 1.3

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 6/15/2026

Vulnerability Publication Date: 6/15/2026

Reference Information

CVE: CVE-2026-50557

cwe: CWE-79