public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/epiphany] f43: Fix CVE-2026-94291
@ 2026-10-23 21:42 Adrian Vovk
  0 siblings, 0 replies; only message in thread
From: Adrian Vovk @ 2026-10-23 21:42 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/epiphany
            Branch : f43
            Commit : cfdda370a30fd1f4d2567eada34ef9beb597a9b9
            Author : Adrian Vovk <avovk@redhat.com>
            Date   : 2026-10-23T17:37:44-04:00
            Stats  : +70/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/epiphany/c/cfdda370a30fd1f4d2567eada34ef9beb597a9b9?branch=f43

            Log:
            Fix CVE-2026-94291

rhbz#2537343

---
diff --git a/CVE-2026-94291.patch b/CVE-2026-94291.patch
new file mode 100644
index 0000000..0a42451
--- /dev/null
+++ b/CVE-2026-94291.patch
@@ -0,0 +1,69 @@
+From 2b577758dad60fce3c1d2680405fc9343d0463ca Mon Sep 17 00:00:00 2001
+From: Michael Catanzaro <mcatanzaro@gnome.org>
+Date: Mon, 21 Sep 2026 16:53:57 -0500
+Subject: [PATCH] embed-shell: register URI schemes as display isolated
+
+This blocks them from being framed by web content. Notably, both
+ephy-reader and view-source URI schemes can be used to exfiltrate local
+files.
+
+Fixes #2952
+
+
+(cherry picked from commit 88c1ce375b62885dfbcdbb08c273233ce5cdb609)
+
+Co-authored-by: Michael Catanzaro <mcatanzaro@gnome.org>
+---
+ embed/ephy-embed-shell.c | 10 +++++++---
+ 1 file changed, 7 insertions(+), 3 deletions(-)
+
+diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
+index 3fe4455f2..438444a01 100644
+--- a/embed/ephy-embed-shell.c
++++ b/embed/ephy-embed-shell.c
+@@ -827,6 +827,7 @@ ephy_embed_shell_startup (GApplication *application)
+   EphyEmbedShellPrivate *priv = ephy_embed_shell_get_instance_private (shell);
+   WebKitWebsiteDataManager *data_manager;
+   WebKitCookieManager *cookie_manager;
++  WebKitSecurityManager *security_manager;
+   g_autofree char *filename = NULL;
+ 
+   G_APPLICATION_CLASS (ephy_embed_shell_parent_class)->startup (application);
+@@ -852,28 +853,31 @@ ephy_embed_shell_startup (GApplication *application)
+   data_manager = webkit_network_session_get_website_data_manager (priv->network_session);
+   webkit_website_data_manager_set_favicons_enabled (data_manager, TRUE);
+ 
++  security_manager = webkit_web_context_get_security_manager (priv->web_context);
++
+   /* about: URIs handler */
+   priv->about_handler = ephy_about_handler_new ();
+   webkit_web_context_register_uri_scheme (priv->web_context,
+                                           EPHY_ABOUT_SCHEME,
+                                           (WebKitURISchemeRequestCallback)about_request_cb,
+                                           shell, NULL);
+-
++  webkit_security_manager_register_uri_scheme_as_display_isolated (security_manager, EPHY_ABOUT_SCHEME);
+   /* Register about scheme as local so that it can contain file resources */
+-  webkit_security_manager_register_uri_scheme_as_local (webkit_web_context_get_security_manager (priv->web_context),
+-                                                        EPHY_ABOUT_SCHEME);
++  webkit_security_manager_register_uri_scheme_as_local (security_manager, EPHY_ABOUT_SCHEME);
+ 
+   /* view source handler */
+   priv->source_handler = ephy_view_source_handler_new ();
+   webkit_web_context_register_uri_scheme (priv->web_context, EPHY_VIEW_SOURCE_SCHEME,
+                                           (WebKitURISchemeRequestCallback)source_request_cb,
+                                           shell, NULL);
++  webkit_security_manager_register_uri_scheme_as_display_isolated (security_manager, EPHY_VIEW_SOURCE_SCHEME);
+ 
+   /* reader mode handler */
+   priv->reader_handler = ephy_reader_handler_new ();
+   webkit_web_context_register_uri_scheme (priv->web_context, EPHY_READER_SCHEME,
+                                           (WebKitURISchemeRequestCallback)reader_request_cb,
+                                           shell, NULL);
++  webkit_security_manager_register_uri_scheme_as_display_isolated (security_manager, EPHY_READER_SCHEME);
+ 
+   /* ephy-resource handler */
+   webkit_web_context_register_uri_scheme (priv->web_context, "ephy-resource",
+-- 
+GitLab
+

diff --git a/epiphany.spec b/epiphany.spec
index 362707b..19167a5 100644
--- a/epiphany.spec
+++ b/epiphany.spec
@@ -19,6 +19,7 @@ Source0:        https://download.gnome.org/sources/epiphany/49/%{name}-%{tarball
 Patch0:         epiphany-default-bookmarks.patch
 
 Patch1:         CVE-2026-18487.patch
+Patch2:         CVE-2026-94291.patch
 
 BuildRequires:  /usr/bin/rst2man
 BuildRequires:  blueprint-compiler

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-23 21:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-23 21:42 [rpms/epiphany] f43: Fix CVE-2026-94291 Adrian Vovk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox