Apps that allow downloads and programmatically destroy sessions may be vulnerable to a use-after-free. If a session is torn down while a native save-file dialog is open for a download, dismissing the dialog dereferences freed memory, which may lead to a crash or memory corruption.
Apps that do not destroy sessions at runtime, or that do not permit downloads, are not affected.
Avoid destroying sessions while a download save dialog may be open. Cancel pending downloads before session teardown.
41.0.0-beta.740.7.039.8.038.8.6If there are any questions or comments about this advisory, please email security@electronjs.org
{
"cwe_ids": [
"CWE-416"
],
"github_reviewed": true,
"nvd_published_at": null,
"severity": "MODERATE",
"github_reviewed_at": "2026-04-03T02:41:23Z"
}