diff --git a/Gemfile b/Gemfile
index 1121a72fe44d42abe63c86261ebbee7dc529f55c..6f8cf9cb7e5bed783a22b210a10d032669089c21 100644
--- a/Gemfile
+++ b/Gemfile
@@ -44,7 +44,7 @@ end
 
 # Optional Markdown support, not for JRuby
 # ToDo: Remove common_mark group when common_mark is decoupled from markdown. See defect (#36892) for more details.
-gem 'redcarpet', '~> 3.5.1', groups: [:markdown, :common_mark]
+gem 'redcarpet', '~> 3.6.0', groups: [:markdown, :common_mark]
 
 # Optional CommonMark support, not for JRuby
 group :common_mark do
diff --git a/debian/changelog b/debian/changelog
index 36ccb303a218a77cc2f0d930d3e523de99a33054..1c750fa5875f3534c2353727ec7152371730a715 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+redmine (5.0.4-7) unstable; urgency=medium
+
+  * upfddated gems version
+
+ -- CHirag Sukhala <chirag@sukhala.in>  Mon, 08 Jan 2024 11:26:38 +0530
+
 redmine (5.0.4-7) unstable; urgency=medium
 
   * d/postinst: Run redmine from its own user. (Closes: #1022815)
diff --git a/debian/control b/debian/control
index 2957bf1691a79261c6f71e86881cb957444396aa..fcf804c7c4e7bd2ee000e4db099c66c296f70d85 100644
--- a/debian/control
+++ b/debian/control
@@ -18,25 +18,25 @@ Build-Depends: dbconfig-common,
                ruby-csv (>= 3.2.0~),
                ruby-task-list (>= 2.3.2~),
                ruby-html-pipeline (>= 2.13.2~),
-               ruby-i18n (>= 1.10.0~),
+               ruby-i18n (>= 1.14.1~),
                ruby-jquery-rails (>= 4.0.5~),
                ruby-mail (>= 2.8.1~),
                ruby-marcel (>= 1.0.1+dfsg-2~),
                ruby-mini-magick (>= 4.11.0~),
                ruby-mini-mime (>= 1.0.1~),
                ruby-net-ldap (>= 0.17.0~),
-               ruby-nokogiri (>= 1.14.0~),
+               ruby-nokogiri (>= 1.15.2~),
                ruby-rack (>= 1.4.5~),
                ruby-rails (>= 2:6.1.7~),
                ruby-rails-observers,
                ruby-rbpdf (>= 1.19~),
-               ruby-redcarpet (>= 3.5.1~),
+               ruby-redcarpet (>= 3.6.0~),
                ruby-request-store (>= 1.5.0~),
                ruby-rmagick (>= 2.14.0~),
                ruby-roadie (>= 3.2.2~),
                ruby-roadie-rails (>= 3.0.0~),
                ruby-rotp (>= 5.0.0~),
-               ruby-rouge (>= 4.1.0~),
+               ruby-rouge (>= 4.2.0~),
                ruby-rqrcode,
                ruby-sanitize (>= 6.0~),
                ruby-zip (>= 2.3.0~),
@@ -75,7 +75,7 @@ Depends: dbconfig-common,
          ruby-csv (>= 3.2.0~),
          ruby-task-list (>= 2.3.2~),
          ruby-html-pipeline (>= 2.13.2~),
-         ruby-i18n (>= 1.10.0~),
+         ruby-i18n (>= 1.14.1~),
          ruby-jquery-rails (>= 4.0.5~),
          ruby-mail (>= 2.8.1~),
          ruby-marcel,
@@ -83,20 +83,20 @@ Depends: dbconfig-common,
          ruby-mini-mime (>= 1.0.1~),
          ruby-mocha (>= 1.4.0~),
          ruby-net-ldap (>= 0.17.0~),
-         ruby-nokogiri (>= 1.14.0~),
+         ruby-nokogiri (>= 1.15.2~),
          ruby-rack (>= 1.4.5~),
          ruby-rack-test (>= 0.7.0~),
          ruby-rails (>= 2:6.1.7~),
          ruby-rails-dom-testing (>= 1.0.6-2~),
          ruby-rails-observers,
          ruby-rbpdf (>= 1.19~),
-         ruby-redcarpet (>= 3.5.1~),
+         ruby-redcarpet (>= 3.6.0~),
          ruby-request-store (>= 1.5.0~),
          ruby-rmagick (>= 2.14.0~),
          ruby-roadie (>= 3.2.2~),
          ruby-roadie-rails (>= 3.0.0~),
          ruby-rotp (>= 5.0.0~),
-         ruby-rouge (>= 4.1.0~),
+         ruby-rouge (>= 4.2.0~),
          ruby-rqrcode,
          ruby-sanitize (>= 6.0~),
          ruby-zip (>= 2.3.0~),
diff --git a/debian/patches/gemfile-deps-adjustment.patch b/debian/patches/gemfile-deps-adjustment.patch
index 070051c0aa78b4db43893512d2d949e60ae943e1..07b2056d6f292189193a62d39cafa1154efea939 100644
--- a/debian/patches/gemfile-deps-adjustment.patch
+++ b/debian/patches/gemfile-deps-adjustment.patch
@@ -1,4 +1,4 @@
-Last-Update: 2022-03-29
+Last-Update: 2023-10-30
 Forwarded: not-needed
 Author: Antonio Terceiro <terceiro@debian.org>
 Description: Adapt dep requirements
@@ -29,7 +29,7 @@ Index: redmine/Gemfile
 +gem 'rails', '~> 6.1.7'
  gem 'globalid', '~> 0.4.2' if Gem.ruby_version < Gem::Version.new('2.6.0')
 -gem 'rouge', '~> 3.28.0'
-+gem 'rouge', '~> 4.1.0'
++gem 'rouge', '~> 4.2.0'
  gem 'request_store', '~> 1.5.0'
  gem 'mini_mime', '~> 1.1.0'
  gem "actionpack-xml_parser"
@@ -39,9 +39,10 @@ Index: redmine/Gemfile
 +gem "mail", "~> 2.8.1"
  gem 'csv', '~> 3.2.0'
 -gem 'nokogiri', (Gem.ruby_version < Gem::Version.new('2.6.0') ? '~> 1.12.5' : '~> 1.13.4')
-+gem 'nokogiri', '~> 1.14.0'
++gem 'nokogiri', '~> 1.15.2'
  gem "rexml", require: false if Gem.ruby_version >= Gem::Version.new('3.0')
- gem 'i18n', '~> 1.10.0'
+-gem 'i18n', '~> 1.10.0'
++gem 'i18n', '~> 1.14.1'
  gem "rbpdf", "~> 1.20.0"
  gem 'addressable'
  gem 'rubyzip', '~> 2.3.0'
@@ -54,7 +55,7 @@ Index: redmine/Gemfile
  # Rails 6.1.6.1 does not work with Pysch 3.0.2, which is installed by default with Ruby 2.5. See https://github.com/rails/rails/issues/45590
  gem 'psych', '>= 3.1.0' if Gem.ruby_version < Gem::Version.new('2.6.0')
  
-@@ -48,10 +48,10 @@ gem 'redcarpet', '~> 3.5.1', groups: [:m
+@@ -48,10 +48,10 @@ gem 'redcarpet', '~> 3.6.0', groups: [:m
  
  # Optional CommonMark support, not for JRuby
  group :common_mark do