# CVE-2023-48220: Decidim's devise\_invitable gem vulnerable to circumvention of invitation token expiry period

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.7
- **CVSS:** 5.7 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.43% (percentile 73, 2026-11-26)
- **CWE:** CWE-672
- **Aliases:** GHSA-w3q8-m492-4pwp
- **Published:** 2024-02-20T17:24:37.791Z
- **Modified:** 2026-09-10T03:50:00.851Z

## 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

## 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

- RubyGems `decidim`: affected \>= 0.0.1.alpha3, \< 0.26.9; fixed 0.26.9, 0.27.5 (osv)
- RubyGems `decidim-admin`: affected \>= 0.0.1.alpha3, \< 0.26.9; fixed 0.26.9, 0.27.5 (osv)
- RubyGems `decidim-system`: affected \>= 0.0.1.alpha3, \< 0.26.9; fixed 0.26.9, 0.27.5 (osv)
- RubyGems `devise_invitable`: affected \>= 0.4.rc3, \< 2.0.9; fixed 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)

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

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- vendor: <https://github.com/decidim/decidim/security/advisories/GHSA-w3q8-m492-4pwp>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-48220>
- patch: <https://github.com/decidim/decidim/commit/073e60e2e4224dd81815a784002ebba30f2ebb34>
- patch: <https://github.com/decidim/decidim/commit/b12800717a689c295a9ea680a38ca9f823d2c454>
- patch: <https://github.com/scambra/devise_invitable/commit/94d859c7de0829bf63f679ae5dd3cab2b866a098>
- other: <https://github.com/decidim/decidim/blob/d2d390578050772d1bdb6d731395f1afc39dcbfc/decidim-core/config/initializers/devise.rb#L134>
- other: <https://github.com/decidim/decidim/releases/tag/v0.26.9>
- other: <https://github.com/decidim/decidim/releases/tag/v0.27.5>
- other: <https://github.com/decidim/decidim/releases/tag/v0.28.0>
- other: <https://github.com/scambra/devise_invitable/blob/41f58970ff76fb64382a9b9ea1bd530f7c3adab2/lib/devise_invitable/models.rb#L198>
- other: <https://github.com/decidim/decidim>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-48220>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-w3q8-m492-4pwp> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-48220> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-48220>
