Electron: ProtocolResponse.url reuses the default session cache instead of the registering session
Package
Affected versions
>= 43.0.0-alpha.1, < 43.0.0
>= 42.0.0-alpha.1, < 42.5.1
>= 41.0.0-alpha.1, < 41.9.1
>= 40.0.0-alpha.1, < 40.10.6
Patched versions
43.0.0
42.5.1
41.9.1
40.10.6
Description
Published to the GitHub Advisory Database
Aug 5, 2026
Reviewed
Aug 5, 2026
Last updated
Aug 5, 2026
Impact
When a custom protocol handler returned a
ProtocolResponsewith aurland nosession, Electron made the upstream request throughdefaultSessioninstead of the session that handled the protocol. A cached response could then be reused across otherwise isolated session partitions.Apps that use
ProtocolResponse.url, omitProtocolResponse.session, and rely on separate sessions to isolate content are affected. Apps that set an explicitsession, or that do not isolate content across sessions, are not affected.Workarounds
Set
ProtocolResponse.sessionexplicitly so the request uses the intended session's cache.Fixed Versions
43.0.042.5.141.9.140.10.6For more information
If you have any questions or comments about this advisory, email Electron at security@electronjs.org
References