CVE-2023-48220
Decidim's devise_invitable gem vulnerable to circumvention of invitation token expiry period
Also known as GHSA-w3q8-m492-4pwp
Mitigation
- Upgrade decidim to one of 0.26.9, 0.27.5 (or later in the same release line).
- Upgrade decidim-admin to one of 0.26.9, 0.27.5 (or later in the same release line).
- Upgrade decidim-system to one of 0.26.9, 0.27.5 (or later in the same release line).
- Upgrade devise_invitable to 2.0.9 or later.
Who should check
- Projects that depend on RubyGems package decidim (>= 0.0.1.alpha3, < 0.26.9)
- Projects that depend on RubyGems package decidim-admin (>= 0.0.1.alpha3, < 0.26.9)
- Projects that depend on RubyGems package decidim-system (>= 0.0.1.alpha3, < 0.26.9)
- Projects that depend on RubyGems package devise_invitable (>= 0.4.rc3, < 2.0.9)
- Anyone running decidim >= 0.0.1.alpha3, < 0.26.9; >= 0.27.0, < 0.27.5; >= 0.4.rc3, < 2.0.9
Vulnerability facts
- Affected
- decidim >= 0.0.1.alpha3, < 0.26.9; decidim-admin >= 0.0.1.alpha3, < 0.26.9; decidim-system >= 0.0.1.alpha3, < 0.26.9; devise_invitable >= 0.4.rc3, < 2.0.9
- Fixed in
- 0.26.9, 0.27.5, 2.0.9
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 5.7 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: High
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- EPSS
- 1.43% chance of exploitation in 30 days (percentile 73, 2026-11-26)
- CWE
- CWE-672
- Modified
Description
Decidim is a participatory democracy framework. Starting in version 0.4.rc3 and prior to version 2.0.9 of the `devise_invitable` gem, the invites feature allows users to accept the invitation for an unlimited amount of time through the password reset functionality. This issue creates vulnerable dependencies starting in version 0.0.1.alpha3 and prior to versions 0.26.9, 0.27.5, and 0.28.0 of the `decidim,` `decidim-admin`, and `decidim-system` gems. When using the password reset functionality, the `devise_invitable` gem always accepts the pending invitation if the user has been invited. The only check done is if the user has been invited but the code does not ensure that the pending invitation is still valid as defined by the `invite_for` expiry period. Decidim sets this configuration to `2.weeks` so this configuration should be respected. The bug is in the `devise_invitable` gem and should be fixed there and the dependency should be upgraded in Decidim once the fix becomes available. `devise_invitable` to version `2.0.9` and above fix this issue. Versions 0.26.9, 0.27.5, and 0.28.0 of the `decidim,` `decidim-admin`, and `decidim-system` gems contain this fix. As a workaround, invitations can be cancelled directly from the database.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| RubyGems decidim | >= 0.0.1.alpha3, < 0.26.9 | 0.26.9, 0.27.5 | osv |
| RubyGems decidim-admin | >= 0.0.1.alpha3, < 0.26.9 | 0.26.9, 0.27.5 | osv |
| RubyGems decidim-system | >= 0.0.1.alpha3, < 0.26.9 | 0.26.9, 0.27.5 | osv |
| RubyGems devise_invitable | >= 0.4.rc3, < 2.0.9 | 2.0.9 | osv |
| decidim | >= 0.0.1.alpha3, < 0.26.9; >= 0.27.0, < 0.27.5; >= 0.4.rc3, < 2.0.9 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-48220. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-48220.md Affected: decidim >= 0.0.1.alpha3, < 0.26.9; decidim-admin >= 0.0.1.alpha3, < 0.26.9; decidim-system >= 0.0.1.alpha3, < 0.26.9; devise_invitable >= 0.4.rc3, < 2.0.9 Fixed in: 0.26.9, 0.27.5, 2.0.9 Steps: 1. Search this machine and project for decidim (RubyGems), decidim-admin (RubyGems), decidim-system (RubyGems), devise_invitable (RubyGems), decidim: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Other
- https://github.com/decidim/decidim/blob/d2d390578050772d1bdb6d731395f1afc39dcbfc/decidim-core/config/initializers/devise.rb#L134
- https://github.com/decidim/decidim/releases/tag/v0.26.9
- https://github.com/decidim/decidim/releases/tag/v0.27.5
- https://github.com/decidim/decidim/releases/tag/v0.28.0
- https://github.com/scambra/devise_invitable/blob/41f58970ff76fb64382a9b9ea1bd530f7c3adab2/lib/devise_invitable/models.rb#L198
- https://github.com/decidim/decidim
FAQ
Is CVE-2023-48220 being exploited?
There is no confirmed exploitation: CVE-2023-48220 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.43% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-48220?
Medium: CVSS 5.7 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2023-48220?
decidim >= 0.0.1.alpha3, < 0.26.9; decidim-admin >= 0.0.1.alpha3, < 0.26.9; decidim-system >= 0.0.1.alpha3, < 0.26.9; devise_invitable >= 0.4.rc3, < 2.0.9.
Is there a fix for CVE-2023-48220?
Yes. Fixed in 0.26.9, 0.27.5, 2.0.9. Upgrade decidim to one of 0.26.9, 0.27.5 (or later in the same release line). Upgrade decidim-admin to one of 0.26.9, 0.27.5 (or later in the same release line). Upgrade decidim-system to one of 0.26.9, 0.27.5 (or later in the same release line). Upgrade devise_invitable to 2.0.9 or later.
How do I check if I'm affected by CVE-2023-48220?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.