diff --git a/Gemfile b/Gemfile
index d1a8c2c5a41601f5df65faa1f12eb6a13fbb2b7a..769f834f46091a7536d28624477dd0288897f660 100644
--- a/Gemfile
+++ b/Gemfile
@@ -25,7 +25,7 @@ gem 'ruby-vips', '~> 2.2', require: false
 gem 'active_model_serializers', '~> 0.10'
 gem 'addressable', '~> 2.8'
 gem 'bootsnap', '~> 1.18.0', require: false
-gem 'browser'
+gem 'browser', '< 6' # https://github.com/fnando/browser/issues/543
 gem 'charlock_holmes', '~> 0.7.7'
 gem 'chewy', '~> 7.3'
 gem 'devise', '~> 4.9'
diff --git a/Gemfile.lock b/Gemfile.lock
index e66077ff03b9bf06ad991d8c4280ce10bd729256..aafad69ed72276d692372f41169ff34d35502306 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -917,7 +917,7 @@ DEPENDENCIES
   blurhash (~> 0.1)
   bootsnap (~> 1.18.0)
   brakeman (~> 6.0)
-  browser
+  browser (< 6)
   bundler-audit (~> 0.9)
   capybara (~> 3.39)
   charlock_holmes (~> 0.7.7)