# CVE-2022-23549: Discourse vulnerable to bypass of post max_length using HTML comments

- Severity: Medium 5.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.72%, higher than 50% of CVEs (2026-11-30)
- Published: 2023-01-05T00:00:00.000Z
- Modified: 2026-09-08T08:46:10.396Z
- Also known as: BIT-DISCOURSE-2022-23549, GHSA-p47g-v5wr-p4xp
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- discourse discourse: from 2.8.14 before 2.8.14; from 2.9.0.beta0 up to 2.9.0.beta0; from 2.9.0.beta16 before 2.9.0.beta16; before 2.8.14; 2.9.0; 3.0.0
- discourse (Bitnami): before 2.8.14

## Every score

- GitHub_M: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/discourse/discourse/commit/bf6b08670a927cc80bb090b7a2e710b4b554e6a8> (advisory, patch, third-party-advisory)
- <https://github.com/discourse/discourse/security/advisories/GHSA-p47g-v5wr-p4xp> (advisory, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-23549> (web)

## Sources

- CVE List: [CVE-2022-23549](https://www.cve.org/CVERecord?id=CVE-2022-23549), CVE Terms of Use, modified 2025-03-10
- NVD: [CVE-2022-23549](https://nvd.nist.gov/vuln/detail/CVE-2022-23549), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-DISCOURSE-2022-23549](https://osv.dev/vulnerability/BIT-DISCOURSE-2022-23549), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-23549 · Whole record: https://cve.day/CVE-2022-23549.json · Rebuilt by cve.day 2026-11-25T22:58:18.057Z
