GitHub Advisoryadvisory · npm
GHSA-9mrq-cjgh-32g2 smartbanner.js rel noopener vulnerability
LOW
Official page ↗
- Aliases
- CVE-2025-25300
- Ecosystem
- npm
- Packages
- smartbanner.js
- Severity
- Low
- CVSS vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:U
- Weaknesses
- CWE-601, CWE-79
- Reviewed
- 2020-06-16
Affected packages
• npm smartbanner.js: < 1.14.1 → fixed in 1.14.1
Description
rel noopener vulnerability
Impact
Clicking on smartbanner _View_ link and navigating to 3rd party page leaves `window.opener` exposed. It may allow hostile 3rd parties to abuse `window.opener`, e.g. by redirection or injection on the original page with smartbanner.
Patches
`rel="noopener"` is automatically populated to links as of `v1.14.1` which is a recommended upgrade to resolve the vulnerability.
Workarounds
If you can not upgrade to `v1.14.1`:
1. Ensure _View_ link is only taking users to App Store or Google Play Store where security is guarded by respective app store security teams
2. If _View_ link is going to a 3rd 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.
Following combination of smartbanner meta tags can be used to achieve the above:
```html
```
References
• About rel=noopener
• Safari 12.1 Release Notes
For more information
If you have any questions or comments about this advisory:
• Open an issue in smartbanner.js
Related
Alias · CVE (1)
- CVE-2025-25300 smartbanner.js is a customizable smart app banner for iOS and Android. vulnerability