GHSA-9mrq-cjgh-32g2

Suggest an improvement
Source
https://github.com/advisories/GHSA-9mrq-cjgh-32g2
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/09/GHSA-9mrq-cjgh-32g2/GHSA-9mrq-cjgh-32g2.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9mrq-cjgh-32g2
Aliases
Related
Published
2019-09-13T13:22:33Z
Modified
2025-02-18T19:12:15.219302Z
Severity
  • 2.7 (Low) CVSS_V4 - 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 CVSS Calculator
Summary
smartbanner.js rel noopener vulnerability
Details

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:
<pre><code><meta name="smartbanner:enabled-platforms" content="none">
<meta name="smartbanner:include-user-agent-regex" content="Mobile.*Safari">
</code></pre>

References

For more information

If you have any questions or comments about this advisory: * Open an issue in smartbanner.js

Database specific
{
    "github_reviewed_at": "2020-06-16T21:29:02Z",
    "cwe_ids": [
        "CWE-601",
        "CWE-79"
    ],
    "nvd_published_at": null,
    "severity": "LOW",
    "github_reviewed": true
}
References

Affected packages

npm / smartbanner.js

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.14.1