Vulnerability library
Security checkJanuary 09, 2023

Cross-Site Scripting in @ionic/core

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpm@ionic/core

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Versions of @ionic/core prior to 4.0.3, 4.1.3, 4.2.1 or 4.3.1 are vulnerable to Cross-Site Scripting (XSS). The package uses the unsafe innerHTML function without sanitizing input, which may allow attackers to execute arbitrary JavaScript on the victim’s browser. This issue affects the components:

  • <ion-alert>.message
  • <ion-searchbar>.placeholder
  • <ion-infinite-scroll-content>.loadingText
  • <ion-refresher-content>.pullingText
  • `.

Recommendation

Update the @ionic/core package to the latest compatible version. Followings are version details:

  • Affected version(s): **>= 4.3.0, < 4.3.1 >= 4.2.0, < 4.2.1 >= 4.1.0, < 4.1.3 < 4.0.3**
  • Patched version(s): **4.3.1 4.2.1 4.1.3 4.0.3**

References

Could your website be exposed too?

SmartScanner can check your website for Cross-Site Scripting in @ionic/core and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 09, 2023