CVE-2022-23549

Discourse vulnerable to bypass of post max_length using HTML comments

State
Published
Severity
5.7 Medium
Published
Jan 5, 2023
Updated
Mar 10, 2025
Reserved
Jan 19, 2022

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.7 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:HGitHub_M

Weaknesses

  • CWE-20 Improper Input Validation

Affected Products

ProductVersions
discoursediscourse
  • 2.8.14 to before 2.8.14Affected
  • 2.9.0.beta0 through 2.9.0.beta0Affected
  • 2.9.0.beta16 to before 2.9.0.beta16Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.