GHSA-2q4g-w47c-4674

Suggest an improvement
Source
https://github.com/advisories/GHSA-2q4g-w47c-4674
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/10/GHSA-2q4g-w47c-4674/GHSA-2q4g-w47c-4674.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-2q4g-w47c-4674
Aliases
Related
Published
2020-10-06T14:24:04Z
Modified
2023-11-01T04:51:58.919013Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L CVSS Calculator
Summary
Unpreventable top-level navigation
Details

Impact

The will-navigate event that apps use to prevent navigations to unexpected destinations as per our security recommendations can be bypassed when a sub-frame performs a top-frame navigation across sites.

Patches

  • 11.0.0-beta.1
  • 10.0.1
  • 9.3.0
  • 8.5.1

Workarounds

Sandbox all your iframes using the sandbox attribute. This will prevent them creating top-frame navigations and is good practice anyway.

For more information

If you have any questions or comments about this advisory:

  • Email us at security@electronjs.org
Database specific
{
    "nvd_published_at": "2020-10-06T18:15:00Z",
    "github_reviewed_at": "2020-10-06T14:12:16Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-20",
        "CWE-693"
    ]
}
References

Affected packages

npm / electron

Package

Affected ranges

Type
SEMVER
Events
Introduced
8.0.0-beta.0
Fixed
8.5.1

npm / electron

Package

Affected ranges

Type
SEMVER
Events
Introduced
9.0.0-beta.0
Fixed
9.3.0

npm / electron

Package

Affected ranges

Type
SEMVER
Events
Introduced
10.0.0-beta.0
Fixed
10.0.1