Vulnerabilities in pkg:gem/decidim-demographics

PACKAGE
Advisory Identifier: GHSA-vq6j-hj8w-7v39
Advisory Summary

CVE-2026-45086 is a MODERATE (CVSS 5.4) forms admin question editor lacks vulnerability (CWE-284: Improper Access Control) affecting Decidim libraries in the RubyGems ecosystem. The issue involves forms admin question editor lacks authorization. Remediation is available by upgrading affected packages to version 0.31.5, 0.32.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/decidim-demographics

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/decidim-demographics. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-vq6j-hj8w-7v39 CVE-2026-45086 MODERATE Decidim: Forms admin question editor lacks authorization

CVE-2026-45086 at a Glance

CVE Identifier CVE-2026-45086
GHSA Identifier GHSA-vq6j-hj8w-7v39
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-284: Improper Access Control
Affected Product Decidim
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 5.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-45086

To remediate this vulnerability, upgrade all affected Decidim dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

decidim-demographics fixed: 0.31.5
Upgrade decidim-demographics to 0.31.5
decidim-demographics fixed: 0.32.0
Upgrade decidim-demographics to 0.32.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for decidim-demographics

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-45086, inspect your project dependencies for Decidim:

inspect dependencies for decidim-demographics

Analyze the terminal output to locate any version of Decidim in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.31.5), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Decidim, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Description A participant can load the demographics questionnaire admin editor and make changes. ## Technical description The demographics questionnaire editor should require admin access, but the route under `/admin/demographics/questions` renders the editor interface without checking whether the caller is an admin. A normal participant can load the page and see the live update form action, which proves the protected interface is reachable. Reproduction steps: Step 1. Sign in as a normal participant: Open `http://localhost:3000/users/sign_in`. Step 2. Request the admin-only editor directly. Open `http://localhost:3000/admin/demographics/questions/edit_questions` in the same browser. Step 3. Add another question: <img width="1522" height="1174" alt="decidim-questions-01" src="https://github.com/user-attachments/assets/923f85d4-0e2f-4511-a9f3-a92f74dbf1d8" /> Note that access was denied when attempting to see question responses or settings. ### Impact - Low-privilege users can access questionnaire-admin interfaces. - They can read question-management surfaces that should remain limited to questionnaire managers. ### Patches See https://github.com/decidim/decidim/pull/16665 ### Workarounds Disable the "decidim-demographics" module ### Reference OWASP A01:2021 Broken Access Control ### Credits This issue was discovered in a security audit organized by the [Decidim Association](https://decidim.org) and made by [Radically Open Security](https://www.radicallyopensecurity.com/) against Decidim financed by [NGI](https://ngi.eu/).

CVE-2026-45086 Affected Decidim Versions

2 component(s)
Fixed Versions:
0.31.50.32.0
Product / Package Ecosystem Affected Versions Fixed Version
decidim-demographics
RubyGems
≥ 0.31.0
< 0.31.5
0.31.5
decidim-demographics
RubyGems
≥ 0.32.0.rc1
< 0.32.0
0.32.0

References

Frequently Asked Questions

What is CVE-2026-45086?
CVE-2026-45086 is a security vulnerability in Decidim involving Forms admin question editor lacks authorization under CWE-284: Improper Access Control.
Which Decidim versions are affected?
Affected versions include releases prior to 0.31.5, 0.32.0 across affected packages: decidim-demographics.
What version fixes CVE-2026-45086?
Upgrading to 0.31.5, 0.32.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is decidim-demographics affected?
Yes, decidim-demographics is affected in releases prior to 0.31.5, 0.32.0. Upgrade your dependency to 0.31.5, 0.32.0 or later.
What is the CVSS score of CVE-2026-45086?
CVE-2026-45086 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2026-45086?
CVE-2026-45086 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check RubyGems dependencies for CVE-2026-45086?
Run the dependency tree command: 'inspect dependencies for decidim-demographics'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vq6j-hj8w-7v39",
  "modified" : "2026-07-13T16:51:05Z",
  "published" : "2026-07-13T16:51:05Z",
  "aliases" : [ "CVE-2026-45086" ],
  "summary" : "Decidim: Forms admin question editor lacks authorization",
  "details" : "## Description\n\nA participant can load the demographics questionnaire admin editor and make changes.\n\n## Technical description\n\nThe demographics questionnaire editor should require admin access, but the route under `/admin/demographics/questions` renders the editor interface without checking whether the caller is an admin. A normal participant can load the page and see the live update form action, which proves the protected interface is reachable.\n\nReproduction steps:\n\nStep 1. Sign in as a normal participant: Open `http://localhost:3000/users/sign_in`.\nStep 2. Request the admin-only editor directly. Open `http://localhost:3000/admin/demographics/questions/edit_questions` in the same browser.\nStep 3. Add another question:\n\n<img width=\"1522\" height=\"1174\" alt=\"decidim-questions-01\" src=\"https://github.com/user-attachments/assets/923f85d4-0e2f-4511-a9f3-a92f74dbf1d8\" />\n\nNote that access was denied when attempting to see question responses or settings.\n\n### Impact\n\n- Low-privilege users can access questionnaire-admin interfaces.\n- They can read question-management surfaces that should remain limited to questionnaire managers.\n \n### Patches\n\nSee https://github.com/decidim/decidim/pull/16665 \n\n### Workarounds\n\nDisable the \"decidim-demographics\" module \n\n### Reference\n\nOWASP A01:2021 Broken Access Control\n\n### Credits\n\nThis issue was discovered in a security audit organized by the [Decidim Association](https://decidim.org) and made by [Radically Open Security](https://www.radicallyopensecurity.com/) against Decidim financed by [NGI](https://ngi.eu/).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "decidim-demographics"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.31.0"
      }, {
        "fixed" : "0.31.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "decidim-demographics"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.32.0.rc1"
      }, {
        "fixed" : "0.32.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/decidim/decidim/security/advisories/GHSA-vq6j-hj8w-7v39"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/decidim/decidim/pull/16665"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/decidim/decidim"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-13T16:51:05Z",
    "nvd_published_at" : null
  }
}