Vulnerability DatabaseGHSA-ghmh-q25g-gxxx

GHSA-ghmh-q25g-gxxx
Ruby vulnerability analysis and mitigation

Impact

The root level commentable field in the API allows access to all commentable resources within the platform, without any permission checks. All Decidim instances are impacted that have not secured the /api endpoint. The /api endpoint is publicly available with the default configuration.

Patches

Not available

Workarounds

To mitigate the issue, you can limit the scope to only authenticated users by limiting access to the /api endpoint. This would require custom code or installing the 3rd party module Decidim::Apiauth. With custom code, the /api endpoint can be limited to only authenticated users with the following code (needs to run during application initialization):


# Within your application

# config/initializers/limit_api_access.rb
module LimitApiAccess
  extend ActiveSupport::Concern
  included do
    prepend_before_action do |controller|
      unless controller.send(:user_signed_in?)
        render plain: I18n.t("actions.login_before_access", scope: "decidim.core"), status: :unauthorized
      end
    end
  end
end
Rails.application.config.to_prepare do
  Decidim::Api::ApplicationController.include(LimitApiAccess)
end

Please note that this would only disable public access to the API and all authenticated users would be still able to exploit the vulnerability. This may be sufficient for some installations, but not for all. Another workaround is to limit the availability of the /api endpoint to only trusted ranges of IPs that need to access the API. The following Nginx configuration would help limiting the API access to only specific IPs:

location /api {
  allow 192.168.1.100;
  allow 192.168.1.101;
  deny all;
}

The same configuration can be also used without the allow statements to disable all traffic to the the /api endpoint. When considering a workaround and the seriousness of the vulnerability, please consider the nature of the platform. If the platform is primarily serving public data, this vulnerability is not serious by its nature. If the platform is protecting some resources, e.g. inside private participation spaces, the vulnerability may expose some data to the attacker that is not meant public. If you have enabled the organization setting "Force users to authenticate before access organization", the scope of this vulnerability is limited to the users who are allowed to log in to the Decidim platform. This setting was introduced in version 0.19.0 and it was applied to the /api endpoint in version 0.22.0.


SourceNVD

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23891CRITICAL9.3
  • RubyRuby
  • decidim-core
NoYesApr 13, 2026
GHSA-2x79-gwq3-vxxmHIGH8.7
  • RubyRuby
  • iodine
NoNoApr 14, 2026
GHSA-ghmh-q25g-gxxxHIGH7.5
  • RubyRuby
  • decidim-api
NoYesApr 14, 2026
GHSA-w5xj-99cg-rccmHIGH7.5
  • RubyRuby
  • decidim-core
NoYesApr 14, 2026
GHSA-9pm8-vwc5-w2hmLOW2.1
  • RubyRuby
  • fat_free_crm
NoYesApr 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management