Search for vulnerabilities
| Vulnerability ID | VCID-j4su-d962-1bcw |
| Aliases |
CVE-2026-40870
GHSA-ghmh-q25g-gxxx |
| Summary | Decidim is a participatory democracy framework. Starting in version 0.0.1 and prior to versions 0.30.5 and 0.31.1, 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. Versions 0.30.5 and 0.31.1 fix the issue. As a workaround, 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. 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. For those who 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. |
| Status | Published |
| Exploitability | 0.5 |
| Weighted Severity | 8.0 |
| Risk | 4.0 |
| Affected and Fixed Packages | Package Details |
| System | Score | Found at |
|---|---|---|
| epss | 0.00045 | https://api.first.org/data/v1/epss?cve=CVE-2026-40870 |
| epss | 0.00045 | https://api.first.org/data/v1/epss?cve=CVE-2026-40870 |
| epss | 0.00045 | https://api.first.org/data/v1/epss?cve=CVE-2026-40870 |
| cvssv3.1_qr | HIGH | https://github.com/advisories/GHSA-ghmh-q25g-gxxx |
| cvssv3 | 7.5 | https://github.com/decidim/decidim/security/advisories/GHSA-ghmh-q25g-gxxx |
| cvssv3.1 | 7.5 | https://github.com/decidim/decidim/security/advisories/GHSA-ghmh-q25g-gxxx |
| cvssv3.1_qr | HIGH | https://github.com/decidim/decidim/security/advisories/GHSA-ghmh-q25g-gxxx |
| ssvc | Track | https://github.com/decidim/decidim/security/advisories/GHSA-ghmh-q25g-gxxx |
| Reference id | Reference type | URL |
|---|---|---|
| https://api.first.org/data/v1/epss?cve=CVE-2026-40870 | ||
| CVE-2026-40870 | https://nvd.nist.gov/vuln/detail/CVE-2026-40870 | |
| CVE-2026-40870.YML | https://github.com/rubysec/ruby-advisory-db/blob/master/gems/decidim-api/CVE-2026-40870.yml | |
| CVE-2026-40870.YML | https://github.com/rubysec/ruby-advisory-db/blob/master/gems/decidim-comments/CVE-2026-40870.yml | |
| GHSA-ghmh-q25g-gxxx | https://github.com/advisories/GHSA-ghmh-q25g-gxxx | |
| GHSA-ghmh-q25g-gxxx | https://github.com/decidim/decidim/security/advisories/GHSA-ghmh-q25g-gxxx |
| Attack Vector (AV) | Attack Complexity (AC) | Privileges Required (PR) | User Interaction (UI) | Scope (S) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|---|
network adjacent_network local physical |
low high |
none low high |
none required |
unchanged changed |
high low none |
high low none |
high low none |
| Percentile | 0.14346 |
| EPSS Score | 0.00045 |
| Published At | June 11, 2026, 12:55 p.m. |
| Date | Actor | Action | Source | VulnerableCode Version |
|---|---|---|---|---|
| 2026-06-11T16:53:14.016651+00:00 | Vulnrichment | Import | https://github.com/cisagov/vulnrichment/blob/develop/2026/40xxx/CVE-2026-40870.json | 38.6.0 |