Live threats

All CVEs / Discourse

CVE-2022-46162Discourse Bbcode

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.3%
probability of exploitation in 30 days · percentile 70
Auth required
No
Published
Nov 30, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-74, CWE-79
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Discourse Bbcode.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
discoursediscourse_bbcode< 2022-11-30

Official sources

References

Links published by the sources. Open them with care.