Decidim Comments API Unauthenticated Access Vulnerability

Vulnerability

A vulnerability in the Decidim participatory democracy framework allows unauthenticated access to all commentable resources via the root level 'commentable' field in the API. This issue affects Decidim versions 0.0.1 prior to 0.30.5 and 0.31.1, all instances that have not secured the '/api' endpoint, which is publicly available by default. The vulnerability arises because the API lacks permission checks, potentially exposing private data in participation spaces, depending on the platform's nature.

Impact

Exploitation of this vulnerability allows unauthorized access to commentable resources, with the potential to expose private data in certain participation spaces.

Remediation

Users can limit access to the '/api' endpoint for only authenticated users by either installing the 'Decidim::Apiauth' module or by adding custom code to restrict API access. Another option is to configure Nginx to allow only specific IP addresses access to the '/api' endpoint.

Added: Apr 21, 2026, 9:18 PM
Updated: Apr 21, 2026, 9:18 PM

Vulnerability Rating

Custom Algorithm
spread
2.2
impact
3.1
exploitability
8.3
remediation
7.7
relevance
6.4
threat
0.0
urgency
2.9
incentive
8.3

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.