Low firefox Logic Error 🔧 Commit mapped

Overview

Low
Severity
CVSS
No
Exploited ITW
Fixed
Fix Status
Impactlow
DescriptionSite isolation issue in the CSS Parsing and Computation component
ComponentDOM
Bug ClassLogic Error
Tracker2060048
Fix commit4b53c716cbe5 (firefox) +17/-0
CISA KEVNot listed
Credited5up3rh3i
Disclosed2026-08-18

Changed Functions

FunctionChangeNotes
if
dom/base/nsContentUtils.cpp
modified

Files Changed

  • dom/base/nsContentUtils.cpp
diff --git a/dom/base/nsContentUtils.cpp b/dom/base/nsContentUtils.cpp
index 6814ff6c951..2cd762c75b0 100644
--- a/dom/base/nsContentUtils.cpp
+++ b/dom/base/nsContentUtils.cpp
@@ -13577,6 +13577,23 @@ nsContentUtils::GetSubresourceCacheValidationInfo(nsIRequest* aRequest,
     if (!info.mMustRevalidate) {
       (void)httpChannel->IsNoCacheResponse(&info.mMustRevalidate);
     }
+
+    if (!info.mMustRevalidate) {
+      nsAutoCString vary;
+      (void)httpChannel->GetResponseHeader("vary"_ns, vary);
+      info.mMustRevalidate = [&] {
+        for (const nsACString& token :
+             nsCCharSeparatedTokenizer(vary, ',').ToRange()) {
+          if (token.EqualsLiteral("*")) {
+            return true;
+          }
+          if (token.EqualsIgnoreCase("cookie")) {
+            return true;
+          }
+        }
+        return false;
+      }();
+    }
   }
 
   // data: URIs are safe to cache across documents under any circumstance, so we
Loading diff…