Ruby REXML 3.3.3 < 3.4.2 DoS vulnerability (High finding) in Gitlab 18.4.1

Running on RHEL 8 in FIPS mode, just upgraded gitlab-fips to 18.1.1. Nessus RHEL 8 scan post upgrade shows the following high vulnerability on the version of REXML Ruby library embedded in Gitlab, related to CVE-2025-58767. While there is one CVE there are two different versions of REXML within Gitlab which are both vulnerable.

Description
The version of the REXML Ruby library installed on the remote host is 3.3.3 prior to 3.4.2. It is, therefore, affected by a DoS vulnerability as referenced in GHSA-c2f4-jgmc-q2r5 advisory.

- REXML is an XML toolkit for Ruby. The REXML gems from 3.3.3 to 3.4.1 has a DoS vulnerability when parsing XML containing multiple XML declarations. If you need to parse untrusted XMLs, you may be impacted to these vulnerabilities. The REXML gem 3.4.2 or later include the patches to fix these vulnerabilities.
(CVE-2025-58767)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.
Solution
Upgrade to REXML version 3.4.2 or later.
See Also
https://github.com/ruby/rexml/security/advisories/GHSA-c2f4-jgmc-q2r5

Output

  Path              : /opt/gitlab/embedded/lib/ruby/gems/3.2.0/specifications//rexml-3.4.0.gemspec
  Installed version : 3.4.0
  Fixed version     : 3.4.2
To see debug logs, please visit individual host

Output

/opt/gitlab/embedded/lib/ruby/gems/3.2.0/specifications//rexml-3.3.9.gemspec
  Installed version : 3.3.9
  Fixed version     : 3.4.2

Is there a workaround/fix for this? What version of Gitlab will it be addressed in? Can we expect a fix as part of the 18.5 release on 10/16?