{"id":"CVE-2023-31142","summary":"Discourse's general category permissions could be set back to default","details":"Discourse is an open source discussion platform. Prior to version 3.0.4 of the `stable` branch and version 3.1.0.beta5 of the `beta` and `tests-passed` branches, if a site has modified their general category permissions, they could be set back to the default. This issue is patched in version 3.0.4 of the `stable` branch and version 3.1.0.beta5 of the `beta` and `tests-passed` branches. A workaround, only if you are modifying the general category permissions, is to use a new category for the same purpose.","aliases":["BIT-discourse-2023-31142","GHSA-286w-97m2-78x2"],"modified":"2026-05-18T05:56:36.422546330Z","published":"2023-06-13T21:12:47.664Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31142.json","cwe_ids":["CWE-732"],"cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31142.json"},{"type":"ADVISORY","url":"https://github.com/discourse/discourse/security/advisories/GHSA-286w-97m2-78x2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31142"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/discourse/discourse","events":[{"introduced":"17daf077e2f11def391859f83d294bb71760b1cf"},{"fixed":"286dfcacb44b76f1a3a89d85c4602ef957bebac0"}]}],"versions":["v3.1.0.beta4","v3.1.0.beta3","v3.1.0.beta2","v3.1.0.beta1"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-31142.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:N/A:N"}]}