All vulnerabilities

Servers and applications

GHSA-3qqj-j98h-49x6

Disabled video MyCode XSS

Severity
Low
Published
16 Sept 2026
Last changed
16 Sept 2026
Added to UpHeron
3 Nov 2026
Fixed in
1.8.41
Weakness
CWE-83
Sources
Project advisories (GitHub)

Description

The MyCode parser does not validate URL schemes correctly when video code is disabled and default HTML attributes are modified, resulting in a JavaScript execution (stored XSS) vulnerability.

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N

When the [video] MyCode is disabled (Yes, allow [video] code in posts, allow_videocode = 0), the MyCode parser (postParser) renders the provided URL as a clickable link. Unlike regular [url] MyCode and auto-linking, the video fallback URL is not validated correctly, allowing attackers to use javascript: or other schemes in the rendered anchor.

The default theme's mycode_url template sets target="_blank" and rel="noopener" attributes, which prevent successful exploitation in modern browsers, but the attributes may be removed by theme authors and administrators to customize behavior.

From mybb/mybb's security advisory.

Affected software

SoftwareAffected versions
MyBBServers and applications · github:mybb/mybb
  • Every version before 1.8.41

About MyBB

open-source forum software

From Wikidata, CC0 1.0.
Docker Hub pulls
195,687Docker Hub, 15 Nov 2026
GitHub stars
1,251GitHub, 15 Nov 2026
Forks
445GitHub, 15 Nov 2026
Latest release
mybb_1841GitHub, 15 Nov 2026
Released
16 Sept 2026GitHub
License
GNU General Public License, version 3.0, GNU Lesser General Public License, version 3.0Wikidata
Written in
PHPWikidata
First released
2002Wikidata
First published on GitHub
13 Jun 2012GitHub

References