#53684: fix: check the sending frame for internal guest, window and reply IPCs
Merged
Created: Sep 7, 2026, 10:59:31 AM
Merged: Sep 7, 2026, 5:49:54 PM
7 comments
Target: main
- Internal guest-view IPCs (attach/detach/call/property get/set) are honoured only from the frame that created the
<webview>. - The internal
window.close()IPC is honoured only from the top-level document; replies towebContents.executeJavaScript()/insertCSS()are accepted only from the frame they were sent to;webContents.sendToFrame()only addresses frames of that WebContents;process.getProcessMemoryInfo()is scoped to the caller's process. - Docs: the
security.mdsender-validation example checkssenderFrame.origin;webview-tag.mdpoints at the main-processipc-messageevent for identifying the sending frame.
Notes: Internal <webview>, window.close() and executeJavaScript reply IPCs are validated against the sending frame.
Backports
Semver Impact
Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.
Semantic Versioning helps users understand the impact of updates:
- Major (X.y.z): Breaking changes that may require code modifications
- Minor (x.Y.z): New features that maintain backward compatibility
- Patch (x.y.Z): Bug fixes that don't change the API
- None: Changes that don't affect using facing parts of Electron