Skip to content
Source
Sign inSign up
TanStack/store

chore(deps): update dependency @angular/compiler to v21.2.17 [security] - abandoned #354

Openrenovate[bot](GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrenovate/npm-angular-compiler-vulnerabilityopened

This PR contains the following updates:

PackageChangeAgeConfidence
@angular/compiler (source)21.2.8 → 21.2.17ageconfidence

@​angular/compiler: Two-Way Property Binding Sanitization Bypass (XSS)

CVE-2026-54265 / GHSA-58w9-8g37-x9v5

More information

Details

An issue in the @angular/compiler package allows bypassing DOM property sanitization through the use of two-way property bindings.

Specifically, when a native DOM property that requires sanitization (such as innerHTML, srcdoc, src, href, data, or sandbox) is bound using the two-way binding syntax (e.g., [(innerHTML)]="value" or bindon-innerHTML="value"), the Angular template compiler failed to apply the appropriate schema-derived sanitizer resolution to the TwoWayProperty operation. As a result, native two-way DOM bindings were emitted without the required sanitizer function, whereas equivalent one-way bindings would be properly sanitized.

This flaw enables an attacker who can control the value of a two-way bound sensitive property to bypass Angular's built-in sanitization logic, potentially leading to client-side Cross-Site Scripting (XSS).

Impact

Any Angular application that uses two-way data binding ([()] or bindon-) on security-sensitive native DOM properties (like innerHTML, href on <a>, src on <img>/<iframe>, etc.) is vulnerable to this security bypass.

Once exploited, this allows a malicious actor to supply an unsanitized property binding value that bypasses core sanitization constraints. This could lead to the execution of arbitrary JavaScript within the target user's browser context, potentially resulting in session hijacking, sensitive data exposure, or unauthorized actions on behalf of the user.

Attack Preconditions

To successfully exploit this vulnerability, the following environment parameters and application states must concurrently exist:

  1. Two-Way Binding on Sensitive Properties: The application must bind to a sensitive native DOM property using the two-way binding syntax (e.g., <div [(innerHTML)]="userContent"></div>).
  2. User-Controlled Input: The value bound to this property must be influenceable by user-controlled input.
  3. Absence of Additional Sanitization: The application does not perform separate manual sanitization (e.g., via DomSanitizer) before passing the value to the bound property.
Patches
  • 22.0.1
  • 21.2.17
  • 20.3.25

Severity

  • CVSS Score: 5.3 / 10 (Medium)
  • Vector String: 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

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Angular: Template and Attribute Namespace Sanitization Bypass (XSS)

CVE-2026-50557 / GHSA-f3m7-gqxr-g87x

More information

Details

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).

Impact

Any Angular application that compiles user-controlled templates at runtime, or relies on sanitization of namespaced elements/attributes, is vulnerable to this security bypass.

Once exploited, this allows a malicious actor to inject a namespaced script element or dynamic attribute bindings, bypassing core sanitization constraints to execute arbitrary JavaScript within the target user's browser context. This could lead to session hijacking, sensitive data exposure, or unauthorized actions on behalf of the user.

Attack Preconditions

To successfully exploit these vulnerabilities, the following environment parameters and application states must all concurrently exist:

  1. User-Controlled Template Input: The application must accept user-controlled inputs that are directly processed by the Angular template compiler at runtime.
  2. Namespace Parsing Support: The input structure must employ custom namespace prefixes (such as <svg:script>) to evade standard tag-name blocklists/checks.
  3. Absence of Additional Context Sanitization: The application does not perform separate input sanitization before feeding values to the Angular compiler.
Patches
  • 22.0.0-rc.2
  • 21.2.15
  • 20.3.22
  • 19.2.23

Severity

  • CVSS Score: 5.3 / 10 (Medium)
  • Vector String: 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

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

angular/angular (@​angular/compiler)

v21.2.17

Compare Source

Deprecations

platform-server
  • XHR support in @angular/platform-server is deprecated. Use standard fetch APIs instead.
common
CommitTypeDescription
86a56dc279fixLimits date format string length
d846326b07fixskip transfer cache for uncacheable HTTP traffic
bc55749698fixuse cryptographically secure SHA-256 for transfer cache key generation
compiler
CommitTypeDescription
dc9c99636dfixsanitize two-way properties
core
CommitTypeDescription
1523061137fixharden TransferState restoration against DOM clobbering
88832c84f8fixvalidate lowercase SVG animation attribute names (#&#8203;69269)
http
CommitTypeDescription
bcb1b7ea25fixpreserve empty referrer option in HttpRequest
a810a319d1fixRejects non-HTTP(S) URLs in JSONP requests
e245d40c4dfixskip transfer cache for fetch credentialed requests
platform-server
CommitTypeDescription
35510746b7fixharden platform location origin validation during SSR
13fb0afe93refactordeprecate ServerXhr (#&#8203;69255)
service-worker
CommitTypeDescription
b9d29381bbfixStrips sensitive headers on cross-origin redirects

v21.2.16

Compare Source

common
CommitTypeDescription
f6d8e642b0fixonly strip a literal /index.html suffix from URLs
compiler
CommitTypeDescription
ae1c8a1f7afixmove projection attributes into constants
core
CommitTypeDescription
3fd6897a67fixharden inherit definition feature against polluted prototypes
7e38336dc7fixuse Object.create(null) for LOCALE_DATA as a hardening measure
platform-server
CommitTypeDescription
66821c4ed5fixthrow on suspicious URLs and restrict protocol-relative URLs
d3170031b6fixupdate domino to latest version

v21.2.15

Compare Source

common
CommitTypeDescription
7f4ac78994fixadd upper bounds for digitsInfo
300f61feb3fixsanitize placeholder
compiler
CommitTypeDescription
0b07f47bd6fixnormalize tag names with custom namespaces in DomElementSchemaRegistry (#&#8203;68925)
eb1cbbf2ebfixprevent namespaced SVG [removed] elements from being stripped
cc1378d54bfixsanitize dynamic href and xlink:href bindings on SVG a elements (#&#8203;68925)
782e01594efixstrip namespaced SVG script elements during template compilation (#&#8203;68925)
core
CommitTypeDescription
ff12fe55acfixnormalize tag names in runtime i18n attribute security context lookup (#&#8203;68925)
e6fe77cc97fixsanitize meta selectors
daaf32937ffixsupport prefix-insensitive DOM schema lookups and compile-time i18n attribute validation (#&#8203;68925)
dada86e43dfixsynchronize core sanitization schema with compiler (#&#8203;68925)
http
CommitTypeDescription
582a417bd2fixexclude withCredentials requests from transfer cache
5c6d6df34bfixskip TransferCache for cookie-bearing requests by default
platform-server
CommitTypeDescription
37e8aadf87fixprevent SSRF bypasses via backslash URLs in HttpClient
72696e244efixsecure location and document initialization against SSRF and path hijack
service-worker
CommitTypeDescription
b8bd49341dfixPreserves explicit 'credentials: omit' in asset requests
ca32fc1000fixPreserves HTTP cache mode in asset group requests

v21.2.14

Compare Source

compiler
CommitTypeDescription
68282dff9ffixstrip namespaced SVG script elements during template compilation
core
CommitTypeDescription
c0f52272edfixdo not insert todo when migrating void @&#8203;Output
938a7f3eddfixmakes resource URL sanitizer lookup case-insensitive
0fb2724194fixreject script element as a dynamic component host
49113ac0effixvisit ICU expressions in signal migration schematics
router
CommitTypeDescription
099bf577eefixskip scroll-to-top on initial navigation when hydrating

v21.2.13

Compare Source

core
CommitTypeDescription
1c6553e97dfixdisallow event attribute bindings in host bindings unconditionally
platform-server
CommitTypeDescription
629905d537fixadd allowedHosts option to renderModule and renderApplication
0b7192f441fixforward BEFORE_APP_SERIALIZED errors to ErrorHandler

v21.2.12

Compare Source

core
CommitTypeDescription
fe13bb669dfixallow explicit read generic with signal input transforms
3430251feffixi18n flags leaking on errors
1aeebbe304fixrespect ngSkipHydration on components with projectable nodes in LContainers
9e38ed7d57fixsanitizer typings
7a05a9a71afixvalidate security-sensitive attributes in i18n bindings
c37f6ca42ffixvisit ng-let expression value in signal migration schematics
forms
CommitTypeDescription
03ad53863bfixprohibit concurrent submits in signal forms

v21.2.11

Compare Source

common
CommitTypeDescription
10ad3c0692fixprevent focus from scrollToAnchor
compiler
CommitTypeDescription
4f5d8a2c0bfixlet declaration span not including end character
core
CommitTypeDescription
a40e2cebc8fixfix ordering of view queries metadata in JIT mode
885a1a1d97fixguard against non-object events and avoid listener wrapper identity mismatch
7a64aff9b5fixprevent event replay double-invocation when element hydrates before app stability
platform-server
CommitTypeDescription
be1f80a253fixensure origin has a trailing slash when parsing url

v21.2.10

Compare Source

docs
CommitTypeDescription
0d5ee9ae1bfixlink formatting in "Animating your Application with CSS"
migrations
CommitTypeDescription
5533ab4f56fixfix NgClass leaving trailing comma after removal
router
CommitTypeDescription
580212c995fixrestore internal URL on popstate when browserUrl is used

v21.2.9

Compare Source

core
CommitTypeDescription
f603d4714ffixescape forward slashes in transfer state to prevent crawler indexing
http
CommitTypeDescription
540536c386fixadd CSP nonce support to JsonpClientBackend
63a857b874fixDon't on Passthru outside of reactive context
platform-server
CommitTypeDescription
e0b5078cf2fixprevent SSRF bypasses via protocol-relative and backslash URLs
router
CommitTypeDescription
684e9fd53dfixnormalize multiple leading slashes in URL parser

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

    1. renovate[bot](GitHub profile, opens in a new tab) added labelsdependencies

    2. nx-cloud[bot](GitHub profile, opens in a new tab)commented

      View your CI Pipeline Execution ↗ for commit f006811719fde698eefb47f48a3348243ee89bd5

      CommandStatusDurationResult
      nx affected --targets=test:sherif,test:knip,tes...✅ Succeeded3m 15sView ↗
      nx run-many --target=build --exclude=examples/**✅ Succeeded1sView ↗

      ☁️ Nx Cloud last updated this comment at 2026-08-09 02:07:07 UTC

    3. socket-security[bot](GitHub profile, opens in a new tab)commented

      Review the following changes in direct dependencies. Learn more about Socket for GitHub.

      Diff Package Supply Chain
      Security
      Vulnerability Quality Maintenance License
      Added@​angular/​compiler@​21.2.1780857898100
      Updatedvite@​8.1.5 ⏵ 8.2.198 +110082 +196 -1100
      Addedeslint@​10.8.19710010097100

      View full report

    4. pkg-pr-new[bot](GitHub profile, opens in a new tab)commented
      @tanstack/angular-store

      npm i https://pkg.pr.new/@tanstack/angular-store@354

      @tanstack/lit-store

      npm i https://pkg.pr.new/@tanstack/lit-store@354

      @tanstack/octane-store

      npm i https://pkg.pr.new/@tanstack/octane-store@354

      @tanstack/preact-store

      npm i https://pkg.pr.new/@tanstack/preact-store@354

      @tanstack/react-store

      npm i https://pkg.pr.new/@tanstack/react-store@354

      @tanstack/solid-store

      npm i https://pkg.pr.new/@tanstack/solid-store@354

      @tanstack/store

      npm i https://pkg.pr.new/@tanstack/store@354

      @tanstack/svelte-store

      npm i https://pkg.pr.new/@tanstack/svelte-store@354

      @tanstack/vue-store

      npm i https://pkg.pr.new/@tanstack/vue-store@354

      commit: dd6d882

    5. Edited/Blocked Notification

      Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

      You can manually request rebase by checking the rebase/retry box above.

      ⚠️ Warning: custom changes will be lost.

    6. Autoclosing Skipped

      This PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.

Sign in to join this conversation.