All vulnerabilities

Servers and applications

CVE-2026-47733

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

Severity
Low
Published
11 Jun 2026
Last changed
11 Jun 2026
Added to UpHeron
3 Nov 2026
Fixed in
8.5.0
Exploit chance
0.1% in the next 30 daysHigher than 3% of CVEs. EPSS by FIRST, 19 Nov 2026
Also known as
GHSA-vvrf-fq54-q4pr
Sources
Project advisories (GitHub)

Description

The ImageElement component in packages/gazzodown renders user-controlled src values directly into and 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.

The ImageElement component renders the src prop directly into the href attribute of an tag without any protocol sanitization:

  • An authenticated user posts a message containing )
  • The message parser (packages/message-parser) parses this as an IMAGE node. The grammar's URLScheme rule ($([A-Za-z0-9+-] |1..32| ":")) accepts javascript: as a valid scheme. The MarkdownLinkFilePath alternative matches the full URL.
From RocketChat/Rocket.Chat's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Rocket.ChatServers and applications · github:rocketchat/rocket.chat
  • Every version before 8.5.0

About Rocket.Chat

open source team chat platform

From Wikidata, CC0 1.0.
Docker Hub pulls
100,039,688Docker Hub, 15 Nov 2026
GitHub stars
46,534GitHub, 15 Nov 2026
Forks
14,157GitHub, 15 Nov 2026
Latest release
9.0.0GitHub, 15 Nov 2026
Released
10 Nov 2026GitHub
License
MIT LicenseWikidata
Written in
TypeScriptWikidata
First published on GitHub
19 May 2015GitHub

Release lines

ReleaseLatestSecurity fixes
8.9 (LTS)LTS8.9.1Until 31 Oct 2027
8.88.8.2Until 1 Mar 2027
8.78.7.2Until 31 Jan 2027
8.68.6.4Until 31 Jan 2027
8.5 (LTS)LTS8.5.5Until 31 Jul 2027
8.48.4.6Ended 31 Oct 2026

From endoflife.date.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-47733
  • GitHub Advisory Database https://github.com/advisories/GHSA-vvrf-fq54-q4pr
  • github.com https://github.com/RocketChat/Rocket.Chat/security/advisories/GHSA-vvrf-fq54-q4pr