{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-46162","published":"2022-11-30T23:15:10.673000Z","last_modified":"2026-06-17T05:11:20.207000Z","status":"Modified","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-74","CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:discourse:discourse_bbcode:*:*:*:*:*:discourse:*:*","part":"a","vendor":"discourse","product":"discourse_bbcode","version_end_excluding":"2022-11-30"}],"cpes_truncated":false,"vendors":["discourse"],"products":["discourse/discourse_bbcode"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"total"},"epss":{"score":0.01265,"percentile":0.69794,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2022-46162/","html_en":"/en/cve/CVE-2022-46162/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-46162","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-46162"},"untrusted":{"vendor_name":"Discourse","product_name":"Discourse Bbcode","desc_en":"discourse-bbcode is the official BBCode plugin for Discourse. Prior to commit 91478f5, CSS injection can occur when rendering content generated with the discourse-bccode plugin. This vulnerability only affects sites which have the discourse-bbcode plugin installed and enabled. This issue is patched in commit 91478f5. As a workaround, ensure that the Content Security Policy is enabled and monitor any posts that contain bbcode.","affected":[{"untrusted_vendor":"discourse","untrusted_product":"discourse-bbcode","versions":[]}],"references":[{"url":"https://github.com/discourse/discourse-bbcode/commit/91478f5cfecdcc43cf85b997168a8ecfd0f8df90","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/discourse/discourse-bbcode/security/advisories/GHSA-8c87-xpqv-c7mp","tags":["Exploit","Vendor Advisory"]}]}}