CVE-2025-25300 smartbanner.js rel noopener XSS vulnerability
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2025-25300?
CVE-2025-25300 is a low-severity vulnerability in ain smartbanner.js, published on 18 Feb 2025.
Official description
smartbanner.js is a customizable smart app banner for iOS and Android. Prior to version 1.14.1, clicking on smartbanner `View` link and navigating to 3rd party page leaves `window.opener` exposed. It may allow hostile third parties to abuse `window.opener`, e.g. by redirection or injection on the original page with smartbanner. `rel="noopener"` is automatically populated to links as of `v1.14.1` which is a recommended upgrade to resolve the vulnerability. Some workarounds are available for those who cannot upgrade. Ensure `View` link is only taking users to App Store or Google Play Store where security is guarded by respective app store security teams. If `View` link is going to a third party page, limit smartbanner.js to be used on iOS that decreases the scope of the vulnerability since as of Safari 12.1, `rel="noopener"` is imposed on all `target="_blank"` links. Version 1.14.1 of smartbanner.js contains a fix for the issue.
Which versions are affected by CVE-2025-25300?
2 open source packages ship an affected version, including smartbanner.js.
| Package | Affected | Fixed in |
|---|---|---|
smartbanner.js npm | All versions | 1.14.1 |
smartbanner.js npm | All versions | 1.14.1 |
How do I fix CVE-2025-25300?
Upgrade smartbanner.js to 1.14.1 or later.
Is CVE-2025-25300 being exploited?
There is no known exploitation of CVE-2025-25300 in the wild and no public exploit code.
Sources
Also known as GHSA-9mrq-cjgh-32g2.