Use After Free Affecting electron package, versions >=11.0.0-beta.1 <11.4.0 <10.4.1
Snyk CVSS
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JS-ELECTRON-1085705
- published 16 Mar 2021
- disclosed 15 Mar 2021
- credit Unknown
Introduced: 15 Mar 2021
CVE-2021-21193 Open this link in a new tabHow to fix?
Upgrade electron
to version 11.4.0, 10.4.1 or higher.
Overview
electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS.
Affected versions of this package are vulnerable to Use After Free. When a LayoutInline
is removed, LineBoxList::DirtyLinesFromChangedChild
tries to mark affected
RootInlineBox
dirty.
When the |LayoutInline| to be removed is culled, it tries to find the RootInlineBox
from its previous siblings, then look for its previous and next RootInlineBox
es.
Occasionally, the next next line of the previous sibling is wrapped at the LayoutInline
, and that its LineBreakObj()
holds the reference to the LayoutInline
. This patch marks such RootInlineBox
dirty.