Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Network-accessible endpoint, low-privilege account required (PR:L), scope changes as server contacts external systems, limited confidentiality and integrity impact, no availability effect.
Primary rating from Vendor (https://github.com/decidim/decidim).
CVSS VectorVendor: https://github.com/decidim/decidim
Lifecycle Timeline
2DescriptionCVE.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:
- Source: attacker-controlled
subscription.endpointin the JSON body posted toPOST /notifications_subscriptions. - Persistence:
params[:endpoint]is stored underuser.notification_settings["subscriptions"]. - Retrieval:
user.notifications_subscriptions.valuesreturns that stored endpoint later. - Sink:
build_payloadsetsendpoint: subscription["endpoint"]. - 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:
# 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:
# 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
POSTrequests 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.
Same weakness CWE-918 – Server-Side Request Forgery (SSRF)
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-54252
GHSA-2g9c-vf8h-prxx