Firefox · DOM
CVE-2026-100773
Logic Error in DOM
Overview
High
Severity
—
CVSS
No
Exploited ITW
Fixed
Fix Status
Files Changed
dom/indexedDB/KeyPath.cpp
Patch
diff --git a/dom/indexedDB/KeyPath.cpp b/dom/indexedDB/KeyPath.cpp
index 91cf51dd72b..e14c893608e 100644
--- a/dom/indexedDB/KeyPath.cpp
+++ b/dom/indexedDB/KeyPath.cpp
@@ -115,7 +115,9 @@ nsresult GetJSValFromKeyPathString(
// only through getters but we still want to support them for key
// extraction. So they need to be handled manually.
Blob* blob;
- if (NS_SUCCEEDED(UNWRAP_OBJECT(Blob, &obj, blob))) {
+ // UNWRAP_OBJECT calls might mutate this.
+ JS::Rooted<JSObject*> blobObj(aCx, obj);
+ if (NS_SUCCEEDED(UNWRAP_OBJECT(Blob, &blobObj, blob))) {
if (token.EqualsLiteral("size")) {
ErrorResult rv;
uint64_t size = blob->GetSize(rv);
Loading diff…
References
On This Page