GHSA-767h-63j4-5226 CVE-2026-45377
Decidim: Private exports can be downloaded through reusable links
- Severity
- 6.5 / 10
- Medium · CVSS 3.1
- Exploit chance (EPSS)
- 0.45%
- Chance of exploitation in the next 30 days. Higher than 39.38% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
- Fix
0.30.9- Upgrade decidim-core to this version or later
Description
Description
The normal download_your_data flow requires the requester to be logged in as the export owner, but the resulting Active Storage blob redirect URL can be replayed without authentication by anyone who obtains it.
Technical description
This private export flow turns an authenticated, user-scoped download into a reusable bearer link because the protected Decidim endpoint redirects to the underlying Active Storage blob URL. Decidim::DownloadYourDataController#download_file correctly scopes the export record to current_user, so the wrapper route itself is not directly accessible to another user. However, once the owner
performs that authenticated GET request, the response redirects to a signed Active Storage URL that is no longer bound to the user session. Anyone who learns that URL can replay it and retrieve the file without being logged in as the export owner.
Because the blob redirect URL is delivered through a GET request and appears in the redirect chain, it is more likely to leak through browser history, logs, proxy tooling, screenshots, copied links, support transcripts, or other client-side handling of URLs.
Reproduction steps:
Step 1. Generate or locate a completed export in the Web UI.
- Sign in as
user@example.orgathttp://localhost:3001/users/sign_in. - Open
http://localhost:3001/download_your_data. - Request a new export from the page and wait until the export becomes downloadable.
- Open the completed export entry from the list and copy its wrapper URL, for example
http://localhost:3001/download_your_data/download?uuid=07286e61-932d-46d4-bd74-bcd1340c503f.
Step 2. Download through the authenticated wrapper route.
- While still signed in as user@example.org, open the wrapper URL in the browser.
- Confirm that this Decidim route requires the owner session and is not directly usable when logged out or when logged in as another user.
Step 3. Capture the final bearer URL in the redirect chain.
- In DevTools Network or Burp, inspect the redirect sequence for the wrapper request.
- Copy the Active Storage redirect URL, typically matching
http://localhost:3001/rails/active_storage/blobs/redirect/<SIGNED_ID>/<FILENAME>. - Note that the Active Storage redirect URL is no longer protected by the Decidim ownership check.
Step 4. Replay the final file URL without authentication.
- Open a private window or separate browser with no Decidim session.
- Paste the copied
http://localhost:3001/rails/active_storage/blobs/redirect/<SIGNED_ID>/<FILENAME>URL. - Confirm the export file still downloads even though you are not logged in as the export owner.
Impact
Personal data exports can be retrieved through leakage channels such as browser history, logs, referrers, screenshots, copied links, support transcripts, intercepted email content, or other client-side disclosure of the GET URL.
Patches
See https://github.com/decidim/decidim/pull/16680
Workarounds
Disable Private Downloads URLs
Reference
OWASP A01:2021 Broken Access Control
Credits
This issue was discovered in a security audit organized by the Decidim Association and made by Radically Open Security against Decidim financed by NGI.
Affected versions
RubyGems
| Package | Vulnerable | Fixed in |
|---|---|---|
| decidim-core | < 0.30.9 |
0.30.9 |
| decidim-core | >= 0.31.0.rc1, < 0.31.5 |
0.31.5 |
| decidim-core | >= 0.32.0.rc1, < 0.32.0 |
0.32.0 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
decidim-core RubyGems → 0.30.9
- bundler
bundle update decidim-core # Gemfile: gem "decidim-core", ">= 0.30.9"
Severity breakdown
CVSS 3.1 6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Weakness
CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
How to prevent it
- Architecture and Design: Compartmentalize the system to have "safe" areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area. Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.
References
Packages
Other links
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-2g9c-vf8h-prxx Decidim: Push subscriptions can be abused for server-side requests | Medium | Also affects decidim-core |
| GHSA-533c-2vh9-4r86 Decidim: HTML content blocks allow stored script execution | Medium | Also affects decidim-core |
| GHSA-w5xj-99cg-rccm Decidim amendments can be accepted or rejected by anyone | Medium | Also affects decidim-core |
| GHSA-fc46-r95f-hq7g Decidim has a cross-site scripting (XSS) in user name | High | Also affects decidim-core |
| GHSA-3cx6-j9j4-54mp Decidim's private data exports can lead to data leaks | Medium | Also affects decidim-core |
| GHSA-9w99-78rj-hmxq Cross-site scripting (XSS) in the dynamic file uploads | Medium | Also affects decidim-core |
| GHSA-469h-mqg8-535r Decidim Cross-site Scripting vulnerability in the external link redirections | Medium | Also affects decidim-core |
| GHSA-5652-92r9-3fx9 Decidim Cross-site Scripting vulnerability in the processes filter | High | Also affects decidim-core |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor