8.8high
XSS in MyBB
- Severity
- 8.8high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.32% (higher than 71% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
In MyBB before version 1.8.24, the custom MyCode (BBCode) for the visual editor doesn't escape input properly when rendering HTML, resulting in a DOM-based XSS vulnerability. The weakness can be exploited by pointing a victim to a page where the visual editor is active (e.g. as a post or Private Message) and operates on a maliciously crafted MyCode message. This may occur on pages where message content is pre-filled using a GET/POST parameter, or on reply pages where a previously saved malicious message is quoted. After upgrading MyBB to 1.8.24, make sure to update the version attribute in the `codebuttons` template for non-default themes to serve the latest version of the patched `jscripts/bbcodes_sceditor.js` file.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| MyBB MyBB | < 1.8.24, before 1.8.24 | CVE List, NVD |
All scores
| GitHub_M | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Classification
What each source says
CVE List
In MyBB before version 1.8.24, the custom MyCode (BBCode) for the visual editor doesn't escape input properly when rendering HTML, resulting in a DOM-based XSS vulnerability. The weakness can be exploited by pointing a victim to a page where the visual editor is active (e.g. as a post or Private Message) and operates on a maliciously crafted MyCode message. This may occur on pages where message content is pre-filled using a GET/POST parameter, or on reply pages where a previously saved malicious message is quoted. After upgrading MyBB to 1.8.24, make sure to update the version attribute in the `codebuttons` template for non-default themes to serve the latest version of the patched `jscripts/bbcodes_sceditor.js` file.
NVD (es)
En MyBB anterior a la versión 1.8.24, el MyCode (BBCode) personalizado para el editor visual no escapa la entrada correctamente cuando renderiza HTML, lo que genera una vulnerabilidad de tipo XSS basada en DOM. La debilidad puede ser explotada señalando a la víctima a una página donde el editor visual está activo (por ejemplo, como una publicación o un Mensaje Privado) y opera en un mensaje MyCode diseñado con fines maliciosos. Esto puede ocurrir en páginas donde el contenido del mensaje se rellena previamente usando un parámetro GET/POST, o en páginas de respuesta donde un mensaje malicioso previamente guardado es citado. Después de actualizar MyBB a la versión 1.8.24, asegúrese de actualizar el atributo de versión en la plantilla "codebuttons" para que los temas no predeterminados sirvan la última versión del archivo "jscripts/bbcodes_sceditor.js" parcheado
References
| https://github.com/mybb/mybb/security/advisories/GHSA-37h7-vfv6-f8rj | patch, third-party-advisory | |
| https://github.com/mybb/mybb/commit/37ad29dcd25489a37bdd89ebac761f22492558b0 | patch, third-party-advisory | |
| https://mybb.com/versions/1.8.24/ | patch, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-15139 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2020-15139 changed 2026-06-17 | Public domain |