{"items":[{"id":"NVI-00018634","kind":"vulnerability","title":"Decidim's comments API allows access to all commentable resources","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-ghmh-q25g-gxxx","CVE-2026-40870"],"plain_summary":"GitHub lists this reviewed advisory for decidim-comments, decidim-api, decidim-comments, decidim-api. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-47397b0a3f04651a6dff0d43842837e4"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-05-29T21:46:27.000Z","value":"7.5 high","meaning":"GitHub source severity; exploitability and local consequence require separate evidence.","source_id":"sr-47397b0a3f04651a6dff0d43842837e4"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-47397b0a3f04651a6dff0d43842837e4","url":"https://github.com/advisories/GHSA-ghmh-q25g-gxxx","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-ghmh-q25g-gxxx","publisher":"GitHub Advisory Database","observed_at":"2026-11-07T00:53:14.635Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-47397b0a3f04651a6dff0d43842837e4"],"technology":"decidim-comments","known_exclusions":[],"conditions_summary":"### Impact\nThe 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.\n\n### Patches\nNot available\n\n### Workarounds\nTo 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`.\n\nWith custom code, the `/api` endpoint can be limited to only authenticated users with the following code (needs to run during application initialization):\n\n```ruby\n# Within your application\n# config/initializers/limit_api_access.rb\n\nmodule LimitApiAccess\n  extend ActiveSupport::Concern\n\n  included do\n    prepend_before_action do |controller|\n      unless controller.send(:user_signed_in?)\n        render plain: I18n.t(\"actions.login_before_access\", scope: \"decidim.core\"), status: :unauthorized\n      end\n    end\n  end\nend\n\nRails.application.config.to_prepare do\n  Decidim::Api::ApplicationController.include(LimitApiAccess)\nend\n```\n\nPlease note","public_affected_ranges":["> 0.31.0.rc1, < 0.31.1"]},{"certainty":"source_listed","source_ids":["sr-47397b0a3f04651a6dff0d43842837e4"],"technology":"decidim-api","known_exclusions":[],"conditions_summary":"### Impact\nThe 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.\n\n### Patches\nNot available\n\n### Workarounds\nTo 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`.\n\nWith custom code, the `/api` endpoint can be limited to only authenticated users with the following code (needs to run during application initialization):\n\n```ruby\n# Within your application\n# config/initializers/limit_api_access.rb\n\nmodule LimitApiAccess\n  extend ActiveSupport::Concern\n\n  included do\n    prepend_before_action do |controller|\n      unless controller.send(:user_signed_in?)\n        render plain: I18n.t(\"actions.login_before_access\", scope: \"decidim.core\"), status: :unauthorized\n      end\n    end\n  end\nend\n\nRails.application.config.to_prepare do\n  Decidim::Api::ApplicationController.include(LimitApiAccess)\nend\n```\n\nPlease note","public_affected_ranges":["> 0.31.0.rc1, < 0.31.1"]},{"certainty":"source_listed","source_ids":["sr-47397b0a3f04651a6dff0d43842837e4"],"technology":"decidim-comments","known_exclusions":[],"conditions_summary":"### Impact\nThe 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.\n\n### Patches\nNot available\n\n### Workarounds\nTo 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`.\n\nWith custom code, the `/api` endpoint can be limited to only authenticated users with the following code (needs to run during application initialization):\n\n```ruby\n# Within your application\n# config/initializers/limit_api_access.rb\n\nmodule LimitApiAccess\n  extend ActiveSupport::Concern\n\n  included do\n    prepend_before_action do |controller|\n      unless controller.send(:user_signed_in?)\n        render plain: I18n.t(\"actions.login_before_access\", scope: \"decidim.core\"), status: :unauthorized\n      end\n    end\n  end\nend\n\nRails.application.config.to_prepare do\n  Decidim::Api::ApplicationController.include(LimitApiAccess)\nend\n```\n\nPlease note","public_affected_ranges":[">= 0.0.1, < 0.30.5"]},{"certainty":"source_listed","source_ids":["sr-47397b0a3f04651a6dff0d43842837e4"],"technology":"decidim-api","known_exclusions":[],"conditions_summary":"### Impact\nThe 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.\n\n### Patches\nNot available\n\n### Workarounds\nTo 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`.\n\nWith custom code, the `/api` endpoint can be limited to only authenticated users with the following code (needs to run during application initialization):\n\n```ruby\n# Within your application\n# config/initializers/limit_api_access.rb\n\nmodule LimitApiAccess\n  extend ActiveSupport::Concern\n\n  included do\n    prepend_before_action do |controller|\n      unless controller.send(:user_signed_in?)\n        render plain: I18n.t(\"actions.login_before_access\", scope: \"decidim.core\"), status: :unauthorized\n      end\n    end\n  end\nend\n\nRails.application.config.to_prepare do\n  Decidim::Api::ApplicationController.include(LimitApiAccess)\nend\n```\n\nPlease note","public_affected_ranges":[">= 0.0.1, < 0.30.5"]}],"null_published_at":"2026-11-07T07:07:39.865Z","source_updated_at":"2026-05-29T21:46:27.000Z","source_disclosed_at":"2026-04-14T22:27:49.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-11-07T00:53:14.635Z"}],"next_cursor":null,"snapshot_revision":"42594"}