CVE-2026-40870

Source
https://cve.org/CVERecord?id=CVE-2026-40870
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40870.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-40870
Aliases
  • GHSA-ghmh-q25g-gxxx
Published
2026-04-21T19:06:09.135Z
Modified
2026-08-12T03:51:15.622912355Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Decidim's comments API allows access to all commentable resources
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-862"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40870.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/decidim/decidim

Affected ranges

Type
GIT
Repo
https://github.com/decidim/decidim
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "0.31.0.rc1"
        },
        {
            "fixed": "0.31.1"
        },
        {
            "introduced": "0.0.1"
        },
        {
            "fixed": "0.30.5"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

v0.*
v0.0.1
v0.0.2
v0.0.3
v0.0.4
v0.0.5
v0.0.6
v0.0.7
v0.0.8
v0.0.8.1
v0.1.0
v0.2.0
v0.20.0
v0.3.0
v0.30.0
v0.30.0.rc1
v0.30.0.rc2
v0.30.0.rc3
v0.30.1
v0.30.2
v0.30.3
v0.30.4
v0.31.0
v0.31.0.rc1
v0.31.0.rc2
v0.4.0
v0.5.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40870.json"