diff --git a/Gemfile b/Gemfile
index 9ea80345a3218bae8cce0fdce3a816504a7bc477..c3d0fcb34cb905a0af996411428c43a31eabe56e 100644
--- a/Gemfile
+++ b/Gemfile
@@ -55,6 +55,7 @@ gem "omniauth-rails_csrf_protection", "~> 1.0"
 gem "omniauth-saml", "~> 2.0"
 gem "pexels", "~> 0.5.0"
 gem "pg", "~> 1.1"
+gem "psych", "= 5.1.0"
 gem "puma"
 gem "rails", "~> 7.1.0"
 gem "rails-autocomplete", "~> 2.0"
@@ -97,4 +98,4 @@ group :test do
   gem "simplecov", require: false
 end
 
-gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
\ No newline at end of file
+gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
diff --git a/Gemfile.lock b/Gemfile.lock
index f972b3000a9fba996f297c10902c0d9235642d68..fc67a2484cd389cbae62edb95cf4bbf1dcffb48f 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -417,7 +417,7 @@ GEM
       requests (~> 1.0.2)
     pg (1.5.4)
     popper_js (2.11.8)
-    psych (5.1.1)
+    psych (5.1.0)
       stringio
     public_suffix (5.0.3)
     puma (6.4.0)
@@ -668,6 +668,7 @@ DEPENDENCIES
   omniauth-saml (~> 2.0)
   pexels (~> 0.5.0)
   pg (~> 1.1)
+  psych (= 5.1.0)
   puma
   rack-mini-profiler (~> 2.0)
   rails (~> 7.1.0)