MarshallOfSound

#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 to webContents.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.md sender-validation example checks senderFrame.origin; webview-tag.md points at the main-process ipc-message event for identifying the sending frame.

Notes: Internal <webview>, window.close() and executeJavaScript reply IPCs are validated against the sending frame.

Backports

42-x-y
Merged
PR Number
#53727
Merged At
Sep 7, 2026, 7:14:49 PM
Released In
Not yet
Release Date
Not yet
43-x-y
Merged
PR Number
#53726
Merged At
Sep 7, 2026, 7:26:47 PM
Released In
Not yet
Release Date
Not yet
44-x-y
Merged
PR Number
#53723
Merged At
Sep 7, 2026, 7:36:02 PM
Released In
Not yet
Release Date
Not yet
45-x-y
Merged
PR Number
#53724
Merged At
Sep 7, 2026, 7:45:54 PM
Released In
Not yet
Release Date
Not yet

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