# CVE-2026-45376: Decidim SQL injection in administrative user search

Source: https://junglewise.ai/threats/cve-2026-45376-decidim-sql-injection-in-administrative-user-search  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-31. Updated: 2026-07-31  
License: CC BY 4.0 with a link back

CVE-2026-45376 · Severity: medium · CVSS 6.8 · Published 2026-07-31

Decidim is an open-source platform used by governments and organizations to facilitate participatory democracy and citizen engagement. A security flaw in the administrative interface allows an authorized administrator to perform unauthorized database queries. This could lead to the exposure of sensitive internal data through specialized timing-based attacks, potentially compromising the privacy of the platform's users or internal operations.

Technologies: [Decidim](https://junglewise.ai/threats/technologies/decidim), [decidim-admin (RubyGems)](https://junglewise.ai/threats/technologies/decidim-admin). Vendors: [Decidim](https://junglewise.ai/threats/vendors/decidim), [RubyGems](https://junglewise.ai/threats/vendors/rubygems).

## Quick answers

**Is CVE-2026-45376 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-45376 being exploited in the wild.

**How severe is CVE-2026-45376?** Medium severity, with a CVSS score of 6.8, published 31 July 2026.

**Which products and versions are affected?** Decidim < 0.30.9, >= 0.31.0.rc1 < 0.31.5, >= 0.32.0.rc1 < 0.32.0.rc2; decidim-admin (RubyGems) ECOSYSTEM:introduced=0,fixed=0.30.9.

**Is there a fix for CVE-2026-45376?** Yes. decidim-admin (RubyGems): upgrade to 0.30.9 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-45376 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-45376?** Check whether you run Decidim or decidim-admin (RubyGems) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- decidim-admin (RubyGems): upgrade to 0.30.9 or later

  ```sh
  bundle update decidim-admin
  ```


## Technical details

A blind SQL injection vulnerability exists in Decidim's administrative user search functionality. The 'GET /admin/organization/users' endpoint incorrectly interpolates the 'params[:term]' parameter into a raw 'Arel.sql' ORDER BY similarity expression without proper sanitization. An authenticated attacker with organization administrator privileges can exploit this to execute arbitrary PostgreSQL expressions. By observing timing differences in the server's response, the attacker can exfiltrate data from the database. The issue has been resolved by refactoring the autocomplete functionality to use a GraphQL API endpoint and ensuring proper parameter handling. Fixes are available in versions 0.30.9, 0.31.5, and 0.32.0.rc2.

## Affected products

- Decidim Decidim < 0.30.9, >= 0.31.0.rc1 < 0.31.5, >= 0.32.0.rc1 < 0.32.0.rc2

## Identifiers

- CVE-2026-45376
- GHSA-jvqq-cvh4-xm37

## Timeline

- 2026-07-31: advisory: NVD publication date
- 2026-07-31: disclosed: GitHub Security Advisory published
- 2026-05-09: patched: Fixes backported to various release branches

## References

- [https://github.com/decidim/decidim/commit/27335957b363516e23919a9006812f1c458c88e0](https://github.com/decidim/decidim/commit/27335957b363516e23919a9006812f1c458c88e0)
- [https://github.com/decidim/decidim/commit/e4d21b41fb462d9436035a043962a4090f2cc240](https://github.com/decidim/decidim/commit/e4d21b41fb462d9436035a043962a4090f2cc240)
- [https://github.com/decidim/decidim/commit/f3817fac448a4e3facd6bcb346167048b3421124](https://github.com/decidim/decidim/commit/f3817fac448a4e3facd6bcb346167048b3421124)
- [https://github.com/decidim/decidim/releases/tag/v0.30.9](https://github.com/decidim/decidim/releases/tag/v0.30.9)
- [https://github.com/decidim/decidim/releases/tag/v0.31.5](https://github.com/decidim/decidim/releases/tag/v0.31.5)
- [https://github.com/decidim/decidim/releases/tag/v0.32.0.rc2](https://github.com/decidim/decidim/releases/tag/v0.32.0.rc2)
- [https://github.com/decidim/decidim/security/advisories/GHSA-jvqq-cvh4-xm37](https://github.com/decidim/decidim/security/advisories/GHSA-jvqq-cvh4-xm37)

## Related threats

- [Decidim JWT authentication replay across organizations](https://junglewise.ai/threats/cve-2026-45414-decidim-jwt-authentication-replay-across-organizations)
- [Decidim improper access control in Private Data Exports](https://junglewise.ai/threats/cve-2026-45377-decidim-improper-access-control-in-private-data-exports)
- [Decidim missing authorization in identity-document verification admin controllers](https://junglewise.ai/threats/cve-2026-45330-decidim-missing-authorization-in-identity-document-verification)
- [Decidim decidim-core incorrect privilege assignment in amendments](https://junglewise.ai/threats/cve-2026-40869-decidim-decidim-core-incorrect-privilege-assignment-in-amendments)
- [Decidim::Admin vulnerable to cross-site scripting (XSS) in the admin activity log](https://junglewise.ai/threats/cve-2024-32034-decidim-admin-vulnerable-to-cross-site-scripting-xss-in-the-admin)
