Vulnerability · Published Jun 24, 2026 · Assigned by GitHub_M
CVE-2026-47733Rocket.Chat: Missing URL protocol sanitization in ImageElement allows javascript: URLs in markdown images
Medium 4.4
In plain English
A medium-severity cross-site scripting in Rocket.Chat from RocketChat. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 3% of all known vulnerabilities).
Official description
Rocket.Chat is an open-source, secure, fully customizable communications platform. Prior to 8.5.0, the ImageElement component in packages/gazzodown renders user-controlled src values directly into <a href> and <img src> attributes without protocol sanitization. Unlike the analogous LinkSpan component — which uses sanitizeUrl to block javascript:, data:, and vbscript: protocols — ImageElement passes the raw URL through unchanged. An authenticated user can post a markdown image with a javascript: URL that, if clicked on an older browser, would execute arbitrary JavaScript in the viewer's session. This vulnerability is fixed in 8.5.0.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| RocketChat | Rocket.Chat | < 8.5.0 |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N