Back

MEDIUM

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

Published Jun 24, 2026

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

Remediation

No remediation recorded yet.

References (2)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner GitHub_M
Published Jun 24, 2026
Updated Jun 25, 2026
Reserved May 19, 2026
CISA Vulnrichment
Updated Jun 25, 2026
NVD
Status Deferred
Modified Jun 25, 2026
Red Hat
Severity n/a
Public date n/a
ENISA EUVD
Assigner GitHub_M
Published Jun 24, 2026
Updated Jun 25, 2026
Exploited since n/a
EUVD-2026-39089