Skip to main content

Decidim CVE-2026-45573

| EUVDEUVD-2026-54252 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-07-13 https://github.com/decidim/decidim GHSA-2g9c-vf8h-prxx
6.4
CVSS 3.1 · Vendor: https://github.com/decidim/decidim
Share

Severity by source

Vendor (https://github.com/decidim/decidim) PRIMARY
6.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
vuln.today AI
6.4 MEDIUM

Network-accessible endpoint, low-privilege account required (PR:L), scope changes as server contacts external systems, limited confidentiality and integrity impact, no availability effect.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:L/SI:N/SA:N

Primary rating from Vendor (https://github.com/decidim/decidim).

CVSS VectorVendor: https://github.com/decidim/decidim

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

Lifecycle Timeline

2
Source Code Evidence Fetched
Jul 13, 2026 - 19:41 vuln.today
Analysis Generated
Jul 13, 2026 - 19:41 vuln.today

DescriptionCVE.org

Description

The push-subscription endpoint stores an attacker-controlled delivery URL, and the notification send path becomes an outbound-request sink when VAPID delivery is enabled. The practical result is an authenticated, stored, mostly blind SSRF primitive to arbitrary HTTPS endpoints reachable from the app server.

Technical description

When VAPID delivery is enabled, the notification subscription flow stores the client-supplied push endpoint without checking that it belongs to an approved push service. The send path later passes that stored URL to WebPush.payload_send, turning the subscription into an attacker-controlled outbound request destination. This is the source-to-sink chain:

  1. Source: attacker-controlled subscription.endpoint in the JSON body posted to POST /notifications_subscriptions.
  2. Persistence: params[:endpoint] is stored under user.notification_settings["subscriptions"].
  3. Retrieval: user.notifications_subscriptions.values returns that stored endpoint later.
  4. Sink: build_payload sets endpoint: subscription["endpoint"].
  5. Outbound request: WebPush.payload_send(**payload) uses the attacker-supplied endpoint as the

destination.

One spec asserts that the endpoint is persisted exactly as supplied:

ruby
# decidim-core/spec/services/decidim/notifications_subscriptions_persistor_spec.rb
expect(user.notifications_subscriptions["auth_code_121"]["endpoint"]).to eq(params[:endpoint])

Another spec asserts that SendPushNotification passes the stored endpoint into WebPush.payload_send:

ruby
# decidim-core/spec/services/decidim/send_push_notification_spec.rb
first_notification_payload = {
  message:,
  endpoint: subscriptions["auth_key_1"]["endpoint"],
  p256dh: subscriptions["auth_key_1"]["p256dh"],
  auth: subscriptions["auth_key_1"]["auth"],
  vapid: a_hash_including(...)
}
expect(WebPush).to receive(:payload_send).with(first_notification_payload)

Impact

  • In a configured deployment, an authenticated user can register an attacker-controlled or otherwise unauthorized HTTPS URL.
  • The server then sends outbound POST requests there whenever a notification is pushed.
  • This is a stored, mostly blind SSRF primitive: useful for outbound interaction with attacker infrastructure and, where routable, internal HTTPS services.
  • Notification metadata is disclosed to the supplied endpoint through the encrypted web push request path.

Patches

See https://github.com/decidim/decidim/pull/16714.

Workarounds

Disable the push notifications feature by removing the VAPID keys in the server.

Resource

SSRF

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.

AnalysisAI

Stored Server-Side Request Forgery in Decidim's push notification subsystem allows any authenticated user to register an arbitrary HTTPS URL as a push subscription endpoint, causing the application server to issue outbound POST requests to that attacker-controlled destination whenever notifications are dispatched. The vulnerability exists in the decidim-core RubyGem across versions below 0.30.9, 0.31.0.rc1 through 0.31.4, and 0.32.0.rc1, and is only exploitable when VAPID push delivery is configured. No public exploit code has been identified and the vulnerability is not listed in the CISA KEV catalog, but a vendor-confirmed patch and source-code-level proof of the source-to-sink chain are available via the GHSA advisory.

Technical ContextAI

Decidim is an open-source Ruby on Rails civic participation platform. The affected component is the Web Push notification system in the decidim-core gem (pkg:rubygems/decidim-core). When VAPID delivery is enabled, the controller at POST /notifications_subscriptions accepts a JSON body containing subscription.endpoint and persists it verbatim into user.notification_settings["subscriptions"] via the NotificationsSubscriptionsPersistor service - confirmed by spec assertions in notifications_subscriptions_persistor_spec.rb. A separate service, SendPushNotification, later retrieves that stored endpoint and passes it as a keyword argument to the third-party WebPush.payload_send method, which constructs and dispatches an outbound HTTPS POST. No allowlist validation existed before the patch; the fix introduces a PushSubscriptionEndpointValidator module that restricts accepted hosts to push.services.mozilla.com, fcm.googleapis.com, and android.googleapis.com subdomains. The root cause class is CWE-918 (Server-Side Request Forgery), specifically a stored variant where the malicious URL persists across requests rather than being consumed immediately.

RemediationAI

Upgrade decidim-core to version 0.30.9, 0.31.5, or 0.32.0 depending on the installed release branch, as confirmed by the GHSA advisory at https://github.com/decidim/decidim/security/advisories/GHSA-2g9c-vf8h-prxx and the upstream patch at https://github.com/decidim/decidim/pull/16714. The patch introduces a PushSubscriptionEndpointValidator that enforces an allowlist of legitimate push service hostnames (Mozilla Push Services and Google FCM), rejecting any subscription endpoint that does not match. For deployments that cannot patch immediately, the vendor-recommended workaround is to disable push notifications entirely by removing the VAPID keys from the server configuration; this eliminates the WebPush.payload_send call path and fully mitigates the SSRF primitive at the cost of losing push notification functionality for all users. No partial network-level workaround (such as egress firewall rules alone) is recommended as a substitute for the patch, since the allowlist validation implemented upstream is the correct long-term control.

Share

CVE-2026-45573 vulnerability details – vuln.today

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