Skip to content

Commit a72fab0

Browse files
1 parent aaecf5c commit a72fab0

2 files changed

Lines changed: 268 additions & 0 deletions

File tree

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-f37v-82c4-4x64",
4+
"modified": "2026-04-07T15:52:29Z",
5+
"published": "2026-04-07T15:52:28Z",
6+
"aliases": [
7+
"CVE-2026-34781"
8+
],
9+
"summary": "Electron: Crash in clipboard.readImage() on malformed clipboard image data",
10+
"details": "### Impact\nApps that call `clipboard.readImage()` may be vulnerable to a denial of service. If the system clipboard contains image data that fails to decode, the resulting null bitmap is passed unchecked to image construction, triggering a controlled abort and crashing the process.\n\nApps are only affected if they call `clipboard.readImage()`. Apps that do not read images from the clipboard are not affected. This issue does not allow memory corruption or code execution.\n\n### Workarounds\nValidate that the clipboard contains image data via `clipboard.availableFormats()` before calling `clipboard.readImage()`. Note this only narrows the window — upgrading to a fixed version is recommended.\n\n### Fixed Versions\n* `42.0.0-alpha.5`\n* `41.1.0`\n* `40.8.5`\n* `39.8.5`\n\n### For more information\nIf you have any questions or comments about this advisory, email us at [security@electronjs.org](mailto:security@electronjs.org)",
11+
"severity": [
12+
{
13+
"type": "CVSS_V3",
14+
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "npm",
21+
"name": "electron"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "0"
29+
},
30+
{
31+
"fixed": "39.8.5"
32+
}
33+
]
34+
}
35+
]
36+
},
37+
{
38+
"package": {
39+
"ecosystem": "npm",
40+
"name": "electron"
41+
},
42+
"ranges": [
43+
{
44+
"type": "ECOSYSTEM",
45+
"events": [
46+
{
47+
"introduced": "40.0.0-alpha.1"
48+
},
49+
{
50+
"fixed": "40.8.5"
51+
}
52+
]
53+
}
54+
]
55+
},
56+
{
57+
"package": {
58+
"ecosystem": "npm",
59+
"name": "electron"
60+
},
61+
"ranges": [
62+
{
63+
"type": "ECOSYSTEM",
64+
"events": [
65+
{
66+
"introduced": "41.0.0-alpha.1"
67+
},
68+
{
69+
"fixed": "41.1.0"
70+
}
71+
]
72+
}
73+
]
74+
},
75+
{
76+
"package": {
77+
"ecosystem": "npm",
78+
"name": "electron"
79+
},
80+
"ranges": [
81+
{
82+
"type": "ECOSYSTEM",
83+
"events": [
84+
{
85+
"introduced": "42.0.0-alpha.1"
86+
},
87+
{
88+
"fixed": "42.0.0-alpha.5"
89+
}
90+
]
91+
}
92+
]
93+
}
94+
],
95+
"references": [
96+
{
97+
"type": "WEB",
98+
"url": "https://github.com/electron/electron/security/advisories/GHSA-f37v-82c4-4x64"
99+
},
100+
{
101+
"type": "WEB",
102+
"url": "https://github.com/electron/electron/pull/50475"
103+
},
104+
{
105+
"type": "WEB",
106+
"url": "https://github.com/electron/electron/commit/a48f03fb8d03933547281ddb2dbb6c6b9e705287"
107+
},
108+
{
109+
"type": "PACKAGE",
110+
"url": "https://github.com/electron/electron"
111+
},
112+
{
113+
"type": "WEB",
114+
"url": "https://github.com/electron/electron/releases/tag/v39.8.5"
115+
},
116+
{
117+
"type": "WEB",
118+
"url": "https://github.com/electron/electron/releases/tag/v40.8.5"
119+
},
120+
{
121+
"type": "WEB",
122+
"url": "https://github.com/electron/electron/releases/tag/v41.1.0"
123+
},
124+
{
125+
"type": "WEB",
126+
"url": "https://github.com/electron/electron/releases/tag/v42.0.0-alpha.5"
127+
}
128+
],
129+
"database_specific": {
130+
"cwe_ids": [
131+
"CWE-476"
132+
],
133+
"severity": "LOW",
134+
"github_reviewed": true,
135+
"github_reviewed_at": "2026-04-07T15:52:28Z",
136+
"nvd_published_at": null
137+
}
138+
}
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-f3pv-wv63-48x8",
4+
"modified": "2026-04-07T15:52:25Z",
5+
"published": "2026-04-07T15:52:25Z",
6+
"aliases": [
7+
"CVE-2026-34765"
8+
],
9+
"summary": "Electron: Named window.open targets not scoped to the opener's browsing context",
10+
"details": "### Impact\nWhen a renderer calls `window.open()` with a target name, Electron did not correctly scope the named-window lookup to the opener's browsing context group. A renderer could navigate an existing child window that was opened by a different, unrelated renderer if both used the same target name. If that existing child was created with more permissive `webPreferences` (via `setWindowOpenHandler`'s `overrideBrowserWindowOptions`), content loaded by the second renderer inherits those permissions.\n\nApps are only affected if they open multiple top-level windows with differing trust levels **and** use `setWindowOpenHandler` to grant child windows elevated `webPreferences` such as a privileged preload script. Apps that do not elevate child window privileges, or that use a single top-level window, are not affected.\n\nApps that additionally grant `nodeIntegration: true` or `sandbox: false` to child windows (contrary to the [security recommendations](https://www.electronjs.org/docs/latest/tutorial/security)) may be exposed to arbitrary code execution.\n\n### Workarounds\nDeny `window.open()` in renderers that load untrusted content by returning `{ action: 'deny' }` from `setWindowOpenHandler`. Avoid granting child windows more permissive `webPreferences` than their opener.\n\n### Fixed Versions\n* `42.0.0-alpha.5`\n* `41.1.0`\n* `40.8.5`\n* `39.8.5`\n\n### For more information\nIf you have any questions or comments about this advisory, email us at [security@electronjs.org](mailto:security@electronjs.org)",
11+
"severity": [
12+
{
13+
"type": "CVSS_V3",
14+
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "npm",
21+
"name": "electron"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "0"
29+
},
30+
{
31+
"fixed": "39.8.5"
32+
}
33+
]
34+
}
35+
]
36+
},
37+
{
38+
"package": {
39+
"ecosystem": "npm",
40+
"name": "electron"
41+
},
42+
"ranges": [
43+
{
44+
"type": "ECOSYSTEM",
45+
"events": [
46+
{
47+
"introduced": "40.0.0-alpha.1"
48+
},
49+
{
50+
"fixed": "40.8.5"
51+
}
52+
]
53+
}
54+
]
55+
},
56+
{
57+
"package": {
58+
"ecosystem": "npm",
59+
"name": "electron"
60+
},
61+
"ranges": [
62+
{
63+
"type": "ECOSYSTEM",
64+
"events": [
65+
{
66+
"introduced": "41.0.0-alpha.1"
67+
},
68+
{
69+
"fixed": "41.1.0"
70+
}
71+
]
72+
}
73+
]
74+
},
75+
{
76+
"package": {
77+
"ecosystem": "npm",
78+
"name": "electron"
79+
},
80+
"ranges": [
81+
{
82+
"type": "ECOSYSTEM",
83+
"events": [
84+
{
85+
"introduced": "42.0.0-alpha.1"
86+
},
87+
{
88+
"fixed": "42.0.0-alpha.5"
89+
}
90+
]
91+
}
92+
]
93+
}
94+
],
95+
"references": [
96+
{
97+
"type": "WEB",
98+
"url": "https://github.com/electron/electron/security/advisories/GHSA-f3pv-wv63-48x8"
99+
},
100+
{
101+
"type": "PACKAGE",
102+
"url": "https://github.com/electron/electron"
103+
},
104+
{
105+
"type": "WEB",
106+
"url": "https://github.com/electron/electron/releases/tag/v39.8.5"
107+
},
108+
{
109+
"type": "WEB",
110+
"url": "https://github.com/electron/electron/releases/tag/v40.8.5"
111+
},
112+
{
113+
"type": "WEB",
114+
"url": "https://github.com/electron/electron/releases/tag/v41.1.0"
115+
},
116+
{
117+
"type": "WEB",
118+
"url": "https://github.com/electron/electron/releases/tag/v42.0.0-alpha.5"
119+
}
120+
],
121+
"database_specific": {
122+
"cwe_ids": [
123+
"CWE-668"
124+
],
125+
"severity": "MODERATE",
126+
"github_reviewed": true,
127+
"github_reviewed_at": "2026-04-07T15:52:25Z",
128+
"nvd_published_at": null
129+
}
130+
}

0 commit comments

Comments
 (0)