High firefox Logic Error 🔧 Commit mapped

Overview

High
Severity
—
CVSS
No
Exploited ITW
Fixed
Fix Status
Impacthigh
DescriptionUse-after-free in the XML component
ComponentDOM
Bug ClassLogic Error
Tracker2082030
Fix commitb66e9e7c969d (firefox) +2/-2
CISA KEVNot listed
CreditedOpenAI Codex Security (kylebot)
Disclosed2026-10-27

Files Changed

  • dom/xml/nsXMLContentSink.cpp
  • parser/html/nsHtml5TreeOperation.cpp
diff --git a/dom/xml/nsXMLContentSink.cpp b/dom/xml/nsXMLContentSink.cpp
index 263008e0701..a8870e43f94 100644
--- a/dom/xml/nsXMLContentSink.cpp
+++ b/dom/xml/nsXMLContentSink.cpp
@@ -518,7 +518,7 @@ nsresult nsXMLContentSink::CreateElement(
       HasCustomElementRegistryAttr(aAtts);
 
   // Step 7: Look up a custom element definition.
-  CustomElementDefinition* customElementDefinition = nullptr;
+  RefPtr<CustomElementDefinition> customElementDefinition;
   nsAtom* nameAtom = ni->NameAtom();
   if (!hasCustomElementRegistryAttr && mDocument &&
       !mDocument->IsLoadedAsData() && isXHTMLOrXUL &&
diff --git a/parser/html/nsHtml5TreeOperation.cpp b/parser/html/nsHtml5TreeOperation.cpp
index c0470efb683..2ad605a58e3 100644
--- a/parser/html/nsHtml5TreeOperation.cpp
+++ b/parser/html/nsHtml5TreeOperation.cpp
@@ -716,7 +716,7 @@ nsIContent* nsHtml5TreeOperation::CreateHTMLElement(
   // 7. Let definition be the result of looking up a custom element definition
   // given registry, namespace, localName, and is.
   const bool isCustomElement = aCreator == NS_NewCustomElement || isAtom;
-  CustomElementDefinition* customElementDefinition = nullptr;
+  RefPtr<CustomElementDefinition> customElementDefinition;
 
   /// customElementDefinition is only used if willExecuteScript is true,
   /// which will only be the case if parser is not in fragment parsing.
Loading diff…