{"id":"CVE-2022-46148","aliases":["CVE-2022-46148","BIT-DISCOURSE-2022-46148","GHSA-c5h6-6gg5-84fh"],"related":[],"kind":"vulnerability","state":"published","title":"Discourse allows self-XSS through malicious composer message","summary":"Discourse is an open-source messaging platform. In versions 2.8.10 and prior on the `stable` branch and versions 2.9.0.beta11 and prior on the `beta` and `tests-passed` branches, users composing malicious messages and navigating to drafts page could self-XSS. This vulnerability can lead to a full XSS on sites which have modified or disabled Discourse’s default Content Security Policy. This issue is patched in the latest stable, beta and tests-passed versions of Discourse.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Discourse is an open-source messaging platform. In versions 2.8.10 and prior on the `stable` branch and versions 2.9.0.beta11 and prior on the `beta` and `tests-passed` branches, users composing malicious messages and navigating to drafts page could self-XSS. This vulnerability can lead to a full XSS on sites which have modified or disabled Discourse’s default Content Security Policy. This issue is patched in the latest stable, beta and tests-passed versions of Discourse.","source":"cvelist"},{"lang":"es","text":"Discourse es una plataforma de mensajería de código abierto. En las versiones 2.8.10 y anteriores en la rama \"stable\" y en las versiones 2.9.0.beta11 y anteriores en las ramas \"beta\" y \"tests-passed\", los usuarios que redactaban mensajes maliciosos y navegaban a la página de borradores podían realizado un auto-XSS. Esta vulnerabilidad puede provocar un XSS completo en sitios que han modificado o deshabilitado la Política de Seguridad de Contenido predeterminada de Discourse. Este problema está solucionado en las últimas versiones stable, beta y tests-passed de Discourse.","source":"nvd"}],"published":"2022-11-29T00:00:00.000Z","modified":"2026-09-10T16:01:30.660Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"<= 2.8.10","status":"affected"},{"version":">= 2.9.0.beta1, <= 2.9.0.beta11","status":"affected"}],"vendor":"discourse","product":"discourse","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"2.8.10"},{"status":"affected","version":"2.9.0"},{"status":"affected","version":"2.9.0"},{"status":"affected","version":"2.9.0"},{"status":"affected","version":"2.9.0"},{"status":"affected","version":"2.9.0"},{"status":"affected","version":"2.9.0"},{"status":"affected","version":"2.9.0"},{"status":"affected","version":"2.9.0"},{"status":"affected","version":"2.9.0"},{"status":"affected","version":"2.9.0"}],"vendor":"discourse","product":"discourse","cpe":"cpe:2.3:a:discourse:discourse:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.8.11"}],"ecosystem":"Bitnami","package":"discourse","purl":"pkg:bitnami/discourse","source":"bitnami"}],"references":[{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-c5h6-6gg5-84fh","tags":["advisory","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-46148","tags":["web"],"sources":["bitnami"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-04-23T15:46:22.564Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-46148","url":"https://www.cve.org/CVERecord?id=CVE-2022-46148","licence":"CVE Terms of Use","modified":"2025-04-23T16:34:02.080Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-46148","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-46148","licence":"Public domain","modified":"2026-06-17T05:11:18.270Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DISCOURSE-2022-46148","url":"https://osv.dev/vulnerability/BIT-DISCOURSE-2022-46148","licence":"Apache-2.0","modified":"2026-09-10T16:01:30.660Z"}],"updatedAt":"2026-11-25T22:58:17.115Z","epss":{"score":0.00546,"percentile":0.47204,"date":"2026-12-01T12:00:22.000Z"}}