CVE-2026-47733CWE-79

Rocket.Chat: Missing URL protocol sanitization in ImageElement allows javascript: URLs in markdown images

Medium · published June 24, 2026

CVSS v3.1
4.4
EPSS
0%
Percentile
7.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
4.4 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00184 · 7.6th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2026-06-24T20:51Z
EPSS history
Timeline
  • 24 JUN 20:51Z
    Rocket.Chat: Missing URL protocol sanitization in ImageElement allows javascript: URLs in markdown images
    cvelistv5