CVE-2022-46162 HIGH

CVE-2022-46162: Discourse BBCode plugin vulnerable to arbitrary CSS injection

Vendor Discourse
Product discourse-bbcode
Weakness CWE-74
Published November 30, 2022
Last update April 22, 2025

CVSS base score

8.8/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality High
Integrity High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

November 30, 2022 CVE published
April 22, 2025 Record updated