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.
Published: 2026-06-24
Score: 4.4 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The ImageElement component in Rocket.Chat, part of the gazzodown rendering package, renders user‑supplied image URLs directly into <a> and <img> tags without sanitizing the protocol. Unlike the LinkSpan component that blocks javascript:, data:, and vbscript: protocols, ImageElement passes the raw URL unchanged. As a result, an authenticated user can post a markdown image containing a javascript: URL. If a recipient clicks the image while using an older browser that permits javascript: URLs in image elements, the embedded JavaScript executes in the victim’s browser session, allowing the attacker to run arbitrary client‑side code with the same privileges as the user. This defect is a form of reflected cross‑site scripting (XSS) and is limited to image rendering; it does not affect link navigation directly.

Affected Systems

Open‑source Rocket.Chat, any installation running a version prior to 8.5.0 is affected. The vulnerability exists in the ImageElement part of the gazzodown rendering package; no specific sub‑packages or community editions are excluded.

Risk and Exploitability

The CVSS v3 score of 4.4 places it in the moderate severity range. EPSS information is not available, and the vulnerability is not currently documented in the CISA KEV catalog. Exploitation requires an authenticated user to post a crafted markdown image and a victim to click the link, so the attack vector is internal (authenticated) and depends on user interaction. Given the moderate score and the reliance on user action, the practical risk is medium, but vigilance is recommended, especially for organizations that use legacy browsers or allow unrestricted markdown content.

Generated by OpenCVE AI on June 24, 2026 at 23:54 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Rocket.Chat to version 8.5.0 or later, where the ImageElement URL protocol sanitization has been restored
  • If an upgrade is delayed, disable markdown image usage or apply a configuration that strips javascript:, data:, and vbscript: protocols from image URLs
  • Ensure clients use modern browsers that refuse to execute javascript: URLs in image elements or configure the front‑end to block such links

Generated by OpenCVE AI on June 24, 2026 at 23:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 24 Jun 2026 21:15:00 +0000

Type Values Removed Values Added
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.
Title Rocket.Chat: Missing URL protocol sanitization in ImageElement allows javascript: URLs in markdown images
Weaknesses CWE-79
References
Metrics cvssV3_1

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-24T20:51:29.245Z

Reserved: 2026-05-19T22:16:39.503Z

Link: CVE-2026-47733

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-25T00:00:14Z

Weaknesses
  • CWE-79

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