Skip to main content

Nginx CVE-2026-40870

| EUVDEUVD-2026-24252 HIGH
Missing Authorization (CWE-862)
2026-04-14 https://github.com/decidim/decidim GHSA-ghmh-q25g-gxxx
7.5
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Access public /api endpoint
  2. Delivery
    Submit GraphQL query for commentable field
  3. Exploit
    Enumerate comments across spaces
  4. Execution
    Extract private discussion content
  5. Impact
    Harvest participant metadata

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Default Decidim installation with /api endpoint publicly accessible (standard configuration per advisory). No authentication, special configuration, or user interaction required (CVSS PR:N/UI:N confirms). Exploitation limited or prevented by: (1) 'Force users to authenticate before access organization' setting enabled in versions 0.22.0+ (requires attacker possess valid user account), (2) custom code or decidim-apiauth module restricting API to authenticated users (same limitation), or (3) network-layer controls blocking /api access via firewall/reverse proxy rules. Attack success depends on existence of non-public commentable resources on target instance - platforms with only public participation spaces expose no confidential data despite technical vulnerability.

Impact

CVSS 7.5 (AV:N/AC:L/PR:N/UI:N) indicates straightforward remote exploitation requiring no authentication, complexity, or interaction - accurate for the technical flaw. However, real-world risk bifurcates sharply based on deployment context. For Decidim instances serving purely public civic engagement data (open town halls, public consultations), confidentiality impact approaches zero since exposed comments are meant to be public. For instances with private participation spaces (internal government deliberations, confidential community processes, embargoed policy discussions), this becomes a serious data leak vector. EPSS data not provided, KEV status is NO, and no public POC is referenced in available sources, suggesting exploitation remains theoretical or limited. The GitHub advisory confirms the issue but provides no evidence of active exploitation. SSVC assessment: exploitation status is 'none public' (no POC in references), automatable is 'yes' (simple GraphQL queries), technical impact is 'partial' (confidentiality only, no integrity/availability). Decision priority depends entirely on data sensitivity - high for privacy-sensitive deployments, low for fully public platforms. Critical gap: no patch timeline provided by maintainers, forcing indefinite reliance on workarounds.

Exploit ScenarioDerived

Attacker crafts GraphQL query to the publicly accessible /api endpoint requesting the 'commentable' root field with nested queries for comments, authors, timestamps, and associated participatory process metadata. Query traverses all commentable resources across the platform including those in private assemblies or restricted consultations. Attacker extracts participant identities, discussion content, and organizational structure of non-public civic processes without authentication. If platform hosts embargoed policy deliberations or confidential community feedback, attacker gains intelligence on stakeholder positions before public release.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 16, 2026

Decidim GraphQL API exposes all commentable resources platform-wide without permission checks, enabling unauthorized access to comments and associated data across public and private participation spaces. Affects decidim-api and decidim-comments Ruby gems with default configurations exposing the /api endpoint publicly. No vendor patch available - only workarounds via authentication enforcement or IP allowlisting. CVSS 7.5 (High) reflects network-accessible confidentiality breach, though real-world impact depends heavily on whether the Decidim instance hosts non-public participation spaces.

RemediationAI

No vendor-released patch available at time of analysis per GitHub advisory GHSA-ghmh-q25g-gxxx. Primary workaround: Restrict /api endpoint to authenticated users by adding the provided Ruby initializer code (config/initializers/limit_api_access.rb) to prepend authentication checks to Decidim::Api::ApplicationController. Trade-off: all authenticated users retain exploit access - acceptable only if trust boundary aligns with authentication (internal users). Alternative: implement IP allowlisting via web server configuration (Nginx location block for /api with allow/deny directives) to restrict API access to trusted networks or disable entirely. Trade-off: breaks legitimate API integrations from non-allowlisted sources. For high-sensitivity deployments, combine both controls: IP allowlist plus authentication requirement. Third option: enable 'Force users to authenticate before access organization' platform setting if running Decidim 0.22.0+ (Settings > Configuration). Trade-off: disables all anonymous platform access, not just API. Evaluate whether comment data exposure justifies operational impact of each mitigation based on participation space sensitivity outlined in advisory.

Affected VersionsENISA

decidim 0.0.1, < 0.30.5
decidim > 0.31.0.rc1, < 0.31.1

Affected Packages

euvd decidim_0_0_1 fix: 0.30.5
euvd decidim_0_31_0_rc1 fix: 0.31.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Decidim is an open-source participatory democracy platform built on Ruby on Rails. The vulnerability exists in the GraphQL API implementation (decidim-api gem) where the root-level 'commentable' field resolver lacks authorization checks. GraphQL APIs differ from REST in that they expose a single endpoint (/api) with a schema-driven query language, making fine-grained access control critical at the resolver level. CWE-862 (Missing Authorization) means the code performs operations without verifying the requester has permission. In Decidim's architecture, commentable resources span public assemblies, private consultations, and restricted participatory processes - all accessible through this single unprotected field. The decidim-comments gem provides the comment model and associations that become exposed. Decidim versions from 0.19.0+ support 'Force users to authenticate before access organization' which, when enabled alongside API changes in 0.22.0+, naturally mitigates exposure by requiring authentication platform-wide.

Know when Nginx gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

3
Patch released
Apr 22, 2026 - 21:08 nvd
Patch available
Patch available
Apr 21, 2026 - 21:02 EUVD
CVE Published
Apr 14, 2026 - 22:27 nvd
HIGH 7.5

DescriptionGitHub Advisory

Impact

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.

Patches

Not available

Workarounds

To 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.

With custom code, the /api endpoint can be limited to only authenticated users with the following code (needs to run during application initialization):

ruby
# Within your application
# config/initializers/limit_api_access.rb

module LimitApiAccess
  extend ActiveSupport::Concern

  included do
    prepend_before_action do |controller|
      unless controller.send(:user_signed_in?)
        render plain: I18n.t("actions.login_before_access", scope: "decidim.core"), status: :unauthorized
      end
    end
  end
end

Rails.application.config.to_prepare do
  Decidim::Api::ApplicationController.include(LimitApiAccess)
end

Please note that this would only disable public access to the API and all authenticated users would be still able to exploit the vulnerability. This may be sufficient for some installations, but not for all.

Another workaround is to limit the availability of the /api endpoint to only trusted ranges of IPs that need to access the API. The following Nginx configuration would help limiting the API access to only specific IPs:

location /api {
  allow 192.168.1.100;
  allow 192.168.1.101;
  deny all;
}

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.

If you 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.

Executive ViewAI

Why It Matters

Decidim's GraphQL API fails to enforce permission checks on comments, allowing unauthenticated users to access sensitive discussion data across all participation spaces regardless of intended visibility. Organizations running Decidim instances with private or restricted-access spaces face immediate confidentiality risk, as comments from closed meetings, confidential consultations, or member-only forums become readable to any network user. Without a vendor patch, immediate architectural controls are required to protect sensitive deliberative data.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable or restrict network access to /api endpoint via firewall, reverse proxy, or WAF rules allowing only trusted internal/partner networks; (2) Enforce API-level authentication via reverse proxy or API gateway requiring tokens/credentials for all GraphQL queries; (3) Reconfigure participation spaces to public-only visibility if sensitive deliberative spaces can be moved offline or to separate infrastructure; (4) Monitor API logs for unauthorized comment enumeration patterns.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Nginx

View all
CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2013-2028 HIGH POC
7.5 Jul 20

The ngx_http_parse_chunked function in http/ngx_http_parse.c in nginx 1.3.9 through 1.4.0 allows remote attackers to cau

CVE-2025-1974 CRITICAL POC
9.8 Mar 25

A critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access

CVE-2013-4547 HIGH POC
7.5 Nov 23

nginx 0.8.41 through 1.4.3 and 1.5.x before 1.5.7 allows remote attackers to bypass intended restrictions via an unescap

CVE-2023-50919 CRITICAL POC
9.8 Jan 12

An issue was discovered on GL.iNet devices before version 4.5.0. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2017-7529 HIGH
7.5 Jul 13

Nginx versions since 0.5.6 up to and including 1.13.2 are vulnerable to integer overflow vulnerability in nginx range fi

CVE-2016-0742 HIGH
7.5 Feb 15

The resolver in nginx before 1.8.1 and 1.9.x before 1.9.10 allows remote attackers to cause a denial of service (invalid

CVE-2025-1098 HIGH POC
8.8 Mar 25

Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress

CVE-2026-123633 CRITICAL POC
9.2 Nov 18

Use-after-free in NGINX Plus and NGINX Open Source can crash a worker process handling HTTP/2-proxied requests and, if A

CVE-2026-123007 CRITICAL POC
9.2 Nov 18

Heap buffer overflow in NGINX Plus and NGINX Open Source when HTTP/2 is enabled lets remote, unauthenticated attackers c

CVE-2024-49368 HIGH POC
8.9 Oct 21

Nginx UI is a web user interface for the Nginx web server. Rated high severity (CVSS 8.9), this vulnerability is remotel

CVE-2025-24514 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy