Discourse BBCode plugin vulnerable to arbitrary CSS injection
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| discourse | discourse-bbcode | before 91478f5cfecdcc43cf85b997168a8ecfd0f8df90 | 91478f5cfecdcc43cf85b997168a8ecfd0f8df90 | Patch available | CNA |
- discourse-bbcode Vendordiscourse Affected before 91478f5cfecdcc43cf85b997168a8ecfd0f8df90 Fixed in 91478f5cfecdcc43cf85b997168a8ecfd0f8df90 Patch available CNA
Remediation
- Fix · CNA discourse-bbcode (discourse) Fixed in 91478f5cfecdcc43cf85b997168a8ecfd0f8df90
Timeline
- 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