{"id":"CVE-2020-15139","state":"PUBLISHED","title":"XSS in MyBB","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.","publishedAt":"2020-08-10T21:35:13.000Z","updatedAt":"2024-08-04T13:08:22.286Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["MyBB MyBB"],"affected":[{"vendor":"MyBB","product":"MyBB","versions":[{"version":"< 1.8.24","status":"affected"}]}],"references":["https://github.com/mybb/mybb/security/advisories/GHSA-37h7-vfv6-f8rj","https://github.com/mybb/mybb/commit/37ad29dcd25489a37bdd89ebac761f22492558b0","https://mybb.com/versions/1.8.24/"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T19:46:36.523Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2020/15xxx/CVE-2020-15139.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2020-15139","state":"PUBLISHED","datePublished":"2020-08-10T21:35:13.000Z","dateUpdated":"2024-08-04T13:08:22.286Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2020-06-25T00:00:00.000Z"},"containers":{"cna":{"title":"XSS in MyBB","descriptions":[{"lang":"en","value":"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":[{"vendor":"MyBB","product":"MyBB","versions":[{"version":"< 1.8.24","status":"affected"}]}],"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"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2020-08-10T21:35:13.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSA-37h7-vfv6-f8rj","discovery":"UNKNOWN"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2020-15139","STATE":"PUBLIC","TITLE":"XSS in MyBB"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"MyBB","version":{"version_data":[{"version_value":"< 1.8.24"}]}}]},"vendor_name":"MyBB"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"}]}]},"references":{"reference_data":[{"name":"https://github.com/mybb/mybb/security/advisories/GHSA-37h7-vfv6-f8rj","refsource":"CONFIRM","url":"https://github.com/mybb/mybb/security/advisories/GHSA-37h7-vfv6-f8rj"},{"name":"https://github.com/mybb/mybb/commit/37ad29dcd25489a37bdd89ebac761f22492558b0","refsource":"MISC","url":"https://github.com/mybb/mybb/commit/37ad29dcd25489a37bdd89ebac761f22492558b0"},{"name":"https://mybb.com/versions/1.8.24/","refsource":"MISC","url":"https://mybb.com/versions/1.8.24/"}]},"source":{"advisory":"GHSA-37h7-vfv6-f8rj","discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/mybb/mybb/security/advisories/GHSA-37h7-vfv6-f8rj","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/mybb/mybb/commit/37ad29dcd25489a37bdd89ebac761f22492558b0","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://mybb.com/versions/1.8.24/","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T13:08:22.286Z"}}]}}}