Skip to content

fix(deps): update ionicons to v8.1.1 for svg sanitization fix - #31789

Merged
ShaneK merged 1 commit into
8.8.xfrom
fix/ionicons-8.1.1-8.8.x
Nov 19, 2026
Merged

ShaneK merged 1 commit into
8.8.xfrom
fix/ionicons-8.1.1-8.8.x

Conversation

@ShaneK

@ShaneK ShaneK commented Nov 19, 2026

Copy link
Copy Markdown
Member

Issue number: internal


What is the current behavior?

Currently, Ionic Framework depends on ionicons@^8.0.13. Every ionicons release up to 8.1.0 has gaps in ion-icon's SVG sanitization that let script run, which are described in GHSA-xg58-2j88-q7f7.

What is the new behavior?

  • @ionic/core, @ionic/angular, @ionic/react and @ionic/vue now require ionicons@^8.1.1, which has the fix, so updating Ionic also updates ionicons.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Since 8.1.1 is the first patched version, this also brings in the font icon support from ionicons@8.1.0, which main already has from #31302. It adds a <slot> to ion-icon and changes its containment and layout CSS. None of our components put content inside ion-icon, and I ran the 172 e2e files that use it in Docker against this branch. The only failure was the item-sliding md/rtl safe area screenshot, which fails just as often on 8.0.13.

ion-icon also stops rendering some SVGs that rendered before, like ones with more than one root <svg> or HTML inside <desc> or <title>. The icons that ship with ionicons all pass, and the advisory covers what to do for custom icons.

@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ionic-framework Ready Ready Preview Nov 19, 2026 9:50pm UTC

Request Review

@ShaneK
ShaneK requested a review from a team as a code owner November 19, 2026 21:44
@ShaneK
ShaneK requested review from brandyscarney and removed request for a team November 19, 2026 21:44
@github-actions github-actions Bot added package: core @ionic/core package package: angular @ionic/angular package package: vue @ionic/vue package package: react @ionic/react package labels Nov 19, 2026

@thetaPC thetaPC left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ShaneK
ShaneK merged commit e4d1850 into 8.8.x Nov 19, 2026
49 checks passed
@ShaneK
ShaneK deleted the fix/ionicons-8.1.1-8.8.x branch November 19, 2026 22:02
wheakerd pushed a commit to wheakerd/ionic-framework that referenced this pull request Nov 19, 2026
…team#31790)

Issue number: internal

---------

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->

Currently, `@ionic/core` depends on `ionicons@^8.1.0` and the framework
packages on `^8.0.13`. Every ionicons release up to `8.1.0` has gaps in
`ion-icon`'s SVG sanitization that let script run, which are described
in
[GHSA-xg58-2j88-q7f7](GHSA-xg58-2j88-q7f7).

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- `@ionic/core`, `@ionic/angular`, `@ionic/react` and `@ionic/vue` now
require `ionicons@^8.1.1`, which has the fix, so updating Ionic also
updates ionicons.

## Does this introduce a breaking change?

- [ ] Yes
- [X] No

<!--
  If this introduces a breaking change:
1. Describe the impact and migration path for existing applications
below.
  2. Update the BREAKING.md file with the breaking change.
3. Add "BREAKING CHANGE: [...]" to the commit description when merging.
See
https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#footer
for more information.
-->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->

This is the same update as ionic-team#31789 on `8.8.x`. `main` is already on
`8.1.0`, so the sanitization fix is the only change here.

`ion-icon` stops rendering some SVGs that rendered before, like ones
with more than one root `<svg>` or HTML inside `<desc>` or `<title>`.
The icons that ship with ionicons all pass, and the advisory covers what
to do for custom icons.

This branch was successfully deployed

1 active deployment
Preview — 8623b0ae Deployed Nov 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: angular @ionic/angular package package: core @ionic/core package package: react @ionic/react package package: vue @ionic/vue package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants