{"answers":{"affected":"1 open source package ship an affected version, including mybb. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-46251 in the wild and no public exploit code.","fix":"Upgrade mybb to 1.8.37 or later.","what":"CVE-2023-46251 is a high-severity cross-site scripting vulnerability in Mybb Mybb, published on 6 Nov 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-46251 and fix it if it is affected.\n\nWhat it is: CVE-2023-46251 is a high-severity cross-site scripting vulnerability in Mybb Mybb, published on 6 Nov 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-46251 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mybb (Bitnami): affected all versions; fixed in 1.8.37\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-46251/ (Markdown: https://insights.sbomify.com/CVE-2023-46251/index.md)","id":"CVE-2023-46251","markdown":"https://insights.sbomify.com/CVE-2023-46251/index.md","name":"CVE-2023-46251","record":{"aliases":["BIT-mybb-2023-46251","GHSA-wj33-q7vj-9fr8"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"MyBB forum software","requires_auth":"none","summary":"Attackers can execute arbitrary scripts in victims' browsers via malicious MyCode in the visual editor, potentially leading to account takeover.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"mybb","vendor":"mybb"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"MyBB is a free and open source forum software. Custom MyCode (BBCode) for the visual editor (_SCEditor_) doesn't escape input properly when rendering HTML, resulting in a DOM-based XSS vulnerability. This 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. The impact is be mitigated when: 1. the visual editor is disabled globally (_Admin CP → Configuration → Settings → Clickable Smilies and BB Code: [Clickable MyCode Editor](https://github.com/mybb/mybb/blob/mybb_1836/install/resources/settings.xml#L2087-L2094)_ is set to _Off_), or 2. the visual editor is disabled for individual user accounts (_User CP → Your Profile → Edit Options_: _Show the MyCode formatting options on the posting pages_ checkbox is not checked). MyBB 1.8.37 resolves this issue with the commit `6dcaf0b4d`. Users are advised to upgrade. Users unable to upgrade may mitigate the impact without upgrading MyBB by changing the following setting (_Admin CP → Configuration → Settings_):\n- _Clickable Smilies and BB Code → [Clickable MyCode Editor](https://github.com/mybb/mybb/blob/mybb_1836/install/resources/settings.xml#L2087-L2094)_: _Off_. Similarly, individual MyBB forum users are able to disable the visual editor by diabling the account option (_User CP → Your Profile → Edit Options_) _Show the MyCode formatting options on the posting pages_.","ecosystems":["Bitnami"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Visual editor persistent Cross-site Scripting (XSS) in MyBB","id":"CVE-2023-46251","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"mybb:mybb","products":["mybb:mybb"],"type":"xss","year":"2023"},"n_packages":1,"n_references":3,"next":{"headline":"Cross-Site Scripting (XSS) via postMessage Handler in Squidex","id":"CVE-2023-46252"},"packages":[{"ecosystem":"Bitnami","fixed":["1.8.37"],"introduced":["0"],"last_affected":[],"package":"mybb","purl":"pkg:bitnami/mybb","source":"BIT-mybb-2023-46251"}],"prev":{"headline":"pypdf possible Infinite Loop when PdfWriter(clone_from) is used with a PDF","id":"CVE-2023-46250"},"products":["mybb"],"published":"2023-11-06","related":[{"cvss_score":10,"headline":"myBB 1.6.4 Backdoor Arbitrary Command Execution","id":"CVE-2011-10018","kev_date_added":null,"published":"2025-08-13"},{"cvss_score":10,"headline":"Information disclosure in n/a","id":"CVE-2015-2786","kev_date_added":null,"published":"2015-03-29"},{"cvss_score":10,"headline":"Cross-site scripting in n/a","id":"CVE-2011-5133","kev_date_added":null,"published":"2012-08-30"},{"cvss_score":10,"headline":"SQL injection in n/a","id":"CVE-2006-0218","kev_date_added":null,"published":"2006-01-16"},{"cvss_score":9.8,"headline":"Code injection in n/a","id":"CVE-2020-22612","kev_date_added":null,"published":"2023-09-01"},{"cvss_score":9.8,"headline":"Code injection in n/a","id":"CVE-2017-16780","kev_date_added":null,"published":"2017-11-10"},{"cvss_score":8.8,"headline":"SQL injection in n/a","id":"CVE-2021-27890","kev_date_added":null,"published":"2021-03-15"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-09-04","vendors":["mybb"]},"summary":"Attackers can execute arbitrary scripts in victims' browsers via malicious MyCode in the visual editor, potentially leading to account takeover.","url":"https://insights.sbomify.com/CVE-2023-46251/"}