{"id":"CVE-2020-15139","published":"2020-08-10T21:35:13Z","modified":"2024-08-04T13:08:22Z","title":"XSS in MyBB","vendor":"MyBB","product":"MyBB","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01317,"percentile":0.71508,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/mybb/mybb/security/advisories/GHSA-37h7-vfv6-f8rj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mybb/mybb/commit/37ad29dcd25489a37bdd89ebac761f22492558b0","tags":["x_refsource_MISC"]},{"url":"https://mybb.com/versions/1.8.24/","tags":["x_refsource_MISC"]}],"priority":{"score":20.5,"factors":[{"name":"EPSS percentile","points":14.3},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"mybb","affectedVersions":[{"vendor":"MyBB","product":"MyBB","versions":["< 1.8.24"]}],"euvd":{"id":"EUVD-2020-7229","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mybb-cve-2020-15139","children":[{"from":"CVE-2020-15139","to":"CVE-2023-46251","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["jscripts/bbcodes_sceditor.js"],"commits":["https://github.com/mybb/mybb/commit/37ad29dcd25489a37bdd89ebac761f22492558b0","https://github.com/mybb/mybb/commit/6dcaf0b4db6254f1833fe8dae295d9ddc2219276"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.42,"basis":"same product + CWE + description similarity"}]}]}}