CVE-2022-23549

published 5 Jan 2023 · updated 10 Mar 2025

Discourse vulnerable to bypass of post max_length using HTML comments

5.7MediumCVSS 5.7EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 2.8.14 and 2.9.0.beta16.

Discourse is an option source discussion platform. Prior to version 2.8.14 on the `stable` branch and version 2.9.0.beta16 on the `beta` and `tests-passed` branches, users can create posts with raw body longer than the `max_length` site setting by including html comments that are not counted toward the character limit. This issue is patched in versions 2.8.14 and 2.9.0.beta16. There are no known workarounds.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
discourse>=2.8.14 <2.8.14, >=2.9.0.beta0 <=2.9.0.beta0, >=2.9.0.beta16 <2.9.0.beta162.8.14, 2.9.0.beta16

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-23549 severity on Zeptric[![CVE-2022-23549](https://zeptric.io/badge/cve/CVE-2022-23549.svg)](https://zeptric.io/cve/CVE-2022-23549)