CVE-2022-46162: Discourse Bbcode

Critical severity, CVSS 9.8. EPSS: 1.2% chance of exploitation in the next 30 days.

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 products

  • Discourse Discourse Bbcode: before 2022-11-30 (fixed in 2022-11-30)

Published 2022-11-30. Last modified 2026-06-17.