Skip to main content

WebSub CVE-2026-50571

| EUVDEUVD-2026-111412 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-10-27 GitHub_M
5.7
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Initiate WebSub subscription to obtain callback URL
  2. Delivery
    Craft verification URL with hub.challenge script payload
  3. Exploit
    Lure victim with active session to click link
  4. Execution
    Subscriber reflects challenge as text/html
  5. Persist
    Script executes in subscriber origin
  6. Impact
    Hijack session and exfiltrate localStorage data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a subscriber implementation that returns the hub.challenge value with a dangerous content-type - specifically text/html (the default in many web frameworks), or application/octet-stream when MIME sniffing is not disabled - because the advisory states that both safe media typing and X-Content-Type-Options: nosniff are needed to close the scenarios. The attacker must first initiate a WebSub subscription on the target subscriber (using the attacker's own session) to obtain a valid callback URL, and the victim must hold an active session on the subscriber origin and must click the attacker's crafted verification URL (UI:R) for session-abuse impact. Limiting factors that reduce realistic risk: the required victim interaction, the need for an exploitable default/misconfigured content-type on the specific subscriber, and the fact that subscribers that already set a safe media type plus nosniff are not affected.

Impact

This is a CWE-79 reflected XSS in the WebSub intent-verification flow with a vendor CVSS 3.1 base score of 5.7 (AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N), placing it in the medium band, and the vuln.today decision label is 'this_month' rather than act_now/emergency - so this is a schedule-and-fix item, not a drop-everything emergency. The signals are mostly concordant toward moderate real-world risk: network vector and low complexity are offset by the requirement for user interaction (UI:R, the victim must follow a crafted link) and by the attacker first having to initiate a subscription to obtain a valid callback URL. It is NOT listed in CISA KEV, so there is no confirmed active exploitation, and no EPSS score was provided in the input, so probabilistic exploitation likelihood cannot be weighed here. One internal inconsistency should be flagged: the provided vector sets C:N, yet the advisory's impact section describes reading private data and exfiltrating localStorage/sessionStorage - that is a confidentiality impact, so the C:N rating appears understated and I rate confidentiality as High in my independent assessment below. Overall this is a legitimate but conditional web-application flaw whose severity depends heavily on how individual subscriber implementations set their response content-type; it is a real priority for teams running WebSub subscribers but not a high-urgency mass-exploitation threat on current evidence.

Exploit ScenarioDerived

An attacker registers a WebSub subscription against a target subscriber application to obtain a valid callback URL, then builds a verification URL whose hub.challenge parameter contains a <script> payload and lures a victim who holds an authenticated session on that subscriber to click it (UI:R). Because many web frameworks return the echoed challenge as text/html by default, the subscriber reflects the payload and the browser executes it in the subscriber's origin, letting the attacker act as the victim and read origin-scoped storage. A public PoC demonstration exists - the reporter demonstrated reflection on WebSub Rocks - but the advisory explicitly states it did not establish practical impact on that demonstration site.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 28, 2026

Reflected cross-site scripting in the WebSub intent-verification flow lets an attacker execute script in a subscriber's origin by getting a subscriber callback endpoint to echo an attacker-supplied hub.challenge (hub_challenge) value back with a dangerous media type - text/html, the default in many web frameworks, or application/octet-stream when MIME sniffing is still enabled. Affected are WebSub subscriber implementations conforming to W3C recommendation REC-websub-20180123, including the reference demonstration hub at websub.rocks; the attacker must first register a subscription with their own session to obtain a valid callback URL, and the victim must hold an active session on that subscriber and follow a crafted verification URL (UI:R, PR:L). Vendor CVSS 3.1 is 5.7 (medium band) and the vuln.today decision label is 'this_month', making this a schedule-and-fix item rather than an emergency; there is no CISA KEV entry and no confirmed active exploitation, and while a public PoC reference exists - reflection was reproduced on the WebSub Rocks validator, which the advisory says does not establish practical impact for that site - it is not verified as working exploit code against a production subscriber.

RemediationAI

No vendor-released patch exists for the W3C recommendation at time of analysis - the advisory and package data record REC-websub-20180123 as not yet patched and recommend that the specification itself warn against these attacks - so remediation is on the subscriber implementer. Per the advisory, apply both controls to the intent-verification response: set an explicit safe content type such as application/octet-stream (or text/plain) instead of letting the framework default to text/html, and return X-Content-Type-Options: nosniff so the echoed challenge cannot be consumed as a same-origin script resource even when MIME sniffing would otherwise be permitted. The trade-off is minimal: the hub only needs the raw challenge string back, so the echo behavior required by the protocol still works, but any client or test tooling that relied on the verification response being rendered or parsed as HTML will no longer do so. For reference, the websub.rocks hub addressed the direct reflection by explicitly setting application/octet-stream (commit c9e24b8815c0d9f43350f0408ce2aedf9aa78ede, https://github.com/aaronpk/websub.rocks/commit/c9e24b8815c0d9f43350f0408ce2aedf9aa78ede); that commit does not add nosniff, so the alternative script-resource/CSP-bypass scenario should be considered open for that implementation until the header is added. Owner guidance: https://github.com/w3c/websub/security/advisories/GHSA-f4hw-w632-m6wh. Given the 'this_month' priority, no KEV listing and no confirmed active exploitation, this can be scheduled with normal change management rather than handled as an emergency.

Affected VersionsENISA

websub = REC-websub-20180123

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

WebSub is a W3C Social Web Working Group recommendation (REC-websub-20180123) describing a publish/subscribe protocol over HTTP. Section 5.3, intent verification, requires the hub to send a verification request to the subscriber's callback URL and requires the subscriber to echo the hub.challenge parameter verbatim as the response body. The recommendation mandates no safe response media typing and no disabled MIME sniffing, so a subscriber that writes the echoed challenge into a default framework response (typically text/html; charset=UTF-8) turns its own callback endpoint into a reflected-script sink - the CWE-79 root cause here is a specification-level omission rather than a coding mistake in a single product. Two exploitation shapes follow: directly reflecting HTML/JavaScript into the subscriber origin so it runs with the victim's session and cookie scope, and using the endpoint as an attacker-controlled same-origin script resource to defeat a script-src 'self' Content Security Policy, which the advisory notes can still succeed with application/octet-stream if MIME sniffing is permitted. The independent assessment scores this CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N - scope is changed because script runs in the subscriber origin - and its exposure depends entirely on whether a given subscriber sets a safe media type and returns X-Content-Type-Options: nosniff; implementations that already do both are not affected, and the advisory notes that many public code samples found via code search omit an explicit content type but that further investigation would be needed to evaluate real exploitability.

Know when Websub gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.7 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N
vuln.today AI 8.7 HIGH

Attacker must register a subscription (PR:L) and the victim must click a crafted link (UI:R); reflected script runs in the subscriber origin reading private data and acting on the session (C:H/I:H), crossing into the user's browser context (S:C).

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Low
niche W3C pub/sub protocol, limited and uneven subscriber deployment
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

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