GHSA-2g9c-vf8h-prxx: Decidim: Push subscriptions can be abused for server-side requests
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:
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 unauthorize
Details
Original advisory: https://github.com/advisories/GHSA-2g9c-vf8h-prxx
Referenced CVEs
| CVE | CSIRTS overview | External |
|---|---|---|
| CVE-2026-45573 | coverage & exploitation status | NVD · CVE.org |
More from GitHub Security Advisories
- mediumGHSA-jr6p-8pjj-mfx6: Capsule has an incomplete fix of CVE-2026-22872: TenantResource RawItems and Generators s…2026-07-31
- mediumGHSA-68cj-mvg9-rgm2: Capsule: CapsuleConfiguration NodeMetadata regex fields lack webhook validation, allowing…2026-07-31
- mediumGHSA-ff84-5f28-78qj: re2: Out-of-bounds heap read in `exec`/`test`/`match` via attacker-influenced `lastIndex`…2026-07-31
- mediumGHSA-6hxr-mr5r-9836: re2: Global `String.prototype.match` with an empty-matchable pattern never advances → inf…2026-07-31
- mediumGHSA-x83g-979r-f5fh: Sylius Mollie Plugin has unauthenticated IDOR that leaks order token and customer PII2026-07-31