{"id":"CVE-2022-23549","state":"PUBLISHED","title":"Discourse vulnerable to bypass of post max_length using HTML comments","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.","publishedAt":"2023-01-05T00:00:00.000Z","updatedAt":"2025-03-10T21:32:15.478Z","severity":{"score":5.7,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["discourse discourse"],"affected":[{"vendor":"discourse","product":"discourse","versions":[{"version":"2.8.14","status":"affected","lessThan":"2.8.14","versionType":"custom"},{"version":"2.9.0.beta0","status":"affected","lessThanOrEqual":"2.9.0.beta0","versionType":"custom"},{"version":"2.9.0.beta16","status":"affected","lessThan":"2.9.0.beta16","versionType":"custom"}]}],"references":["https://github.com/discourse/discourse/commit/bf6b08670a927cc80bb090b7a2e710b4b554e6a8","https://github.com/discourse/discourse/security/advisories/GHSA-p47g-v5wr-p4xp"],"weaknesses":["CWE-20"],"ingestedAt":"2026-10-29T19:49:40.939Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/23xxx/CVE-2022-23549.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-23549","state":"PUBLISHED","datePublished":"2023-01-05T00:00:00.000Z","dateUpdated":"2025-03-10T21:32:15.478Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2022-01-19T00:00:00.000Z"},"containers":{"cna":{"title":"Discourse vulnerable to bypass of post max_length using HTML comments","descriptions":[{"lang":"en","value":"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":[{"vendor":"discourse","product":"discourse","versions":[{"version":"2.8.14","status":"affected","lessThan":"2.8.14","versionType":"custom"},{"version":"2.9.0.beta0","status":"affected","lessThanOrEqual":"2.9.0.beta0","versionType":"custom"},{"version":"2.9.0.beta16","status":"affected","lessThan":"2.9.0.beta16","versionType":"custom"}]}],"references":[{"url":"https://github.com/discourse/discourse/commit/bf6b08670a927cc80bb090b7a2e710b4b554e6a8"},{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-p47g-v5wr-p4xp"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":5.7,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","type":"CWE","lang":"en","description":"CWE-20 Improper Input Validation"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-01-05T00:00:00.000Z"},"x_generator":{"engine":"Vulnogram 0.0.9"},"source":{"defect":["GHSA-p47g-v5wr-p4xp"],"advisory":"GHSA-p47g-v5wr-p4xp","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/discourse/discourse/commit/bf6b08670a927cc80bb090b7a2e710b4b554e6a8","tags":["x_transferred"]},{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-p47g-v5wr-p4xp","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T03:43:46.454Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-03-10T21:00:30.999857Z","id":"CVE-2022-23549","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-03-10T21:32:15.478Z"}}]}}}