CVE-2026-50571

WebSub: Reflected script execution through intent-verification challenges

Published Oct 27, 2026 CVSS 3.1 · 5.7 Medium EPSS < 1% KEV · Not listed
Description
WebSub is a W3C recommendation produced by the Social Web Working Group. In recommendation REC-websub-20180123, the intent-verification protocol requires a subscriber to echo the `hub.challenge` value, also exposed as `hub_challenge` by some frameworks, but does not require safe response media typing or disabled MIME sniffing. An attacker can initiate a subscription to obtain a callback URL and redirect a victim browser to a crafted verification request containing HTML or JavaScript. Subscribers that return the challenge as `text/html` can execute the reflected content in the subscriber origin, using a victim's existing session to read private data or perform actions, exposing `localStorage` or `sessionStorage` and browser permissions granted to that origin. An alternative uses the verification response as an attacker-controlled same-origin script resource to bypass `script-src 'self'`; this can remain possible with `application/octet-stream` when MIME sniffing is allowed. Safe media typing and `X-Content-Type-Options: nosniff` are both needed to address the described scenarios. WebSub Rocks demonstrated reflection, but the advisory does not establish practical impact on that demonstration site.

Analysis

AI-generated

Technical impact

The WebSub intent‑verification process echoes a supplied challenge value back to the subscriber. The protocol does not mandate safe response media typing or disabled MIME sniffing. As a result, when the subscriber returns the challenge as text/html or another executable MIME type, the browser will execute the reflected content in the subscriber’s origin. This leads to a reflected cross‑site scripting vulnerability that can access localStorage, sessionStorage, or other browser permissions held by that origin. The weakness is a classical unsanitized output flaw, classified as CWE‑79.

Affected Systems

This issue applies to implementations of the W3C WebSub recommendation, particularly those hosted by the W3C Social Web Working Group. No specific product versions are listed; the vulnerability may affect any WebSub implementation that mirrors the default challenge‑echo behavior described.

Risk and Exploitability

The CVSS score of 5.7 indicates a moderate severity. The EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog, suggesting no confirmed exploitation at this time. Nevertheless, the attack path is remote: an attacker can initiate a subscription and supply a crafted verification request. If the victim’s browser is directed to the malicious verification response or a same‑origin script resource, the reflected code can run. Safe media typing and the X‑Content‑Type‑Options: nosniff header are required to mitigate the described scenarios.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Configure the server to set the challenge response to a safe media type such as application/json or text/plain; avoid echoing it as text/html.
  • Add a strict X‑Content‑Type‑Options: nosniff header to all subscriber challenge responses to prevent MIME‑sniffing based execution.
  • Modify the WebSub implementation to treat the hub.challenge value as non‑executable content and reject or sanitize any attempts to interpret it as script.

Generated by OpenCVE AI on October 27, 2026 at 23:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared W3c
W3c websub
Vendors & Products W3c
W3c websub
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description WebSub is a W3C recommendation produced by the Social Web Working Group. In recommendation REC-websub-20180123, the intent-verification protocol requires a subscriber to echo the `hub.challenge` value, also exposed as `hub_challenge` by some frameworks, but does not require safe response media typing or disabled MIME sniffing. An attacker can initiate a subscription to obtain a callback URL and redirect a victim browser to a crafted verification request containing HTML or JavaScript. Subscribers that return the challenge as `text/html` can execute the reflected content in the subscriber origin, using a victim's existing session to read private data or perform actions, exposing `localStorage` or `sessionStorage` and browser permissions granted to that origin. An alternative uses the verification response as an attacker-controlled same-origin script resource to bypass `script-src 'self'`; this can remain possible with `application/octet-stream` when MIME sniffing is allowed. Safe media typing and `X-Content-Type-Options: nosniff` are both needed to address the described scenarios. WebSub Rocks demonstrated reflection, but the advisory does not establish practical impact on that demonstration site.
Title WebSub: Reflected script execution through intent-verification challenges
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 5.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 28, 2026, 4:12 PM
Reserved
Jun 4, 2026, 9:34 PM
Status
Deferred
Published
Oct 27, 2026, 11:17 PM
Modified
Oct 28, 2026, 5:18 PM