Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. smartbanner.js
  4. ›
  5. GMS-2019-56

GMS-2019-56: Low severity vulnerability that affects smartbanner.js

September 13, 2019 (updated December 3, 2021)

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, rel="noopener" is imposed on all target="_blank" links.

Following combination of smartbanner meta tags can be used to achieve the above:

<meta name="smartbanner:enabled-platforms" content="none">
<meta name="smartbanner:include-user-agent-regex" content="Mobile.*Safari">

References

  • About rel=noopener
  • Safari Release Notes

For more information

If you have any questions or comments about this advisory:

  • Open an issue in smartbanner.js

References

  • github.com/advisories/GHSA-9mrq-cjgh-32g2
  • github.com/ain/smartbanner.js/security/advisories/GHSA-9mrq-cjgh-32g2

Code Behaviors & Features

Detect and mitigate GMS-2019-56 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.14.1

Fixed versions

  • 1.14.1

Solution

Upgrade to version 1.14.1 or above.

Source file

npm/smartbanner.js/GMS-2019-56.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:04 +0000.