Read the docs
TI-2022-22806 Aliases CVE-2022-46162

Discourse BBCode plugin vulnerable to arbitrary CSS injection

Priority HIGH 76CWE-74Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-79.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01208 68th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed discourse-bbcode (discourse): 91478f5cfecdcc43cf85b997168a8ecfd0f8df90

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
discoursediscourse-bbcodebefore 91478f5cfecdcc43cf85b997168a8ecfd0f8df9091478f5cfecdcc43cf85b997168a8ecfd0f8df90Patch availableCNA
  • discourse-bbcode Vendordiscourse Affected before 91478f5cfecdcc43cf85b997168a8ecfd0f8df90 Fixed in 91478f5cfecdcc43cf85b997168a8ecfd0f8df90 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:discourse:discourse_bbcode:*:*:*:*:*:discourse:*:*before 2022-11-30Vulnerablediscourse
  • cpe:2.3:a:discourse:discourse_bbcode:*:*:*:*:*:discourse:*:* Versions before 2022-11-30 Vulnerable ·discourse

Remediation

  • Fix · CNA discourse-bbcode (discourse) Fixed in 91478f5cfecdcc43cf85b997168a8ecfd0f8df90

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-46162

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences