{"id":"CVE-2022-46162","aliases":["CVE-2022-46162"],"related":[],"kind":"vulnerability","state":"published","title":"Discourse BBCode plugin vulnerable to arbitrary CSS injection","summary":"discourse-bbcode is the official BBCode plugin for Discourse. Prior to commit 91478f5, CSS injection can occur when rendering content generated with the discourse-bccode plugin. This vulnerability only affects sites which have the discourse-bbcode plugin installed and enabled. This issue is patched in commit 91478f5. As a workaround, ensure that the Content Security Policy is enabled and monitor any posts that contain bbcode.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"discourse-bbcode is the official BBCode plugin for Discourse. Prior to commit 91478f5, CSS injection can occur when rendering content generated with the discourse-bccode plugin. This vulnerability only affects sites which have the discourse-bbcode plugin installed and enabled. This issue is patched in commit 91478f5. As a workaround, ensure that the Content Security Policy is enabled and monitor any posts that contain bbcode.","source":"cvelist"},{"lang":"es","text":"discurso-bbcode es el complemento oficial de BBCode para Discourse. Antes de commit 91478f5, puede ocurrir una inyección de CSS al representar contenido generado con el complemento discurso-bccode. Esta vulnerabilidad solo afecta a los sitios que tienen instalado y habilitado el complemento discurso-bbcode. Este problema se solucionó en commit 91478f5. Como workaround, asegúrese de que la Política de Seguridad de Contenido esté habilitada y supervise cualquier publicación que contenga bbcode.","source":"nvd"}],"published":"2022-11-30T00:00:00.000Z","modified":"2026-06-17T05:11:20.207Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-74","CWE-79"],"affected":[{"ranges":[{"version":"< 91478f5cfecdcc43cf85b997168a8ecfd0f8df90","status":"affected"}],"vendor":"discourse","product":"discourse-bbcode","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"2022-11-30"}],"vendor":"discourse","product":"discourse_bbcode","cpe":"cpe:2.3:a:discourse:discourse_bbcode:*:*:*:*:*:discourse:*:*","source":"nvd"}],"references":[{"url":"https://github.com/discourse/discourse-bbcode/security/advisories/GHSA-8c87-xpqv-c7mp","tags":["exploit","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/discourse/discourse-bbcode/commit/91478f5cfecdcc43cf85b997168a8ecfd0f8df90","tags":["patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-04-22T15:39:55.552Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-46162","url":"https://www.cve.org/CVERecord?id=CVE-2022-46162","licence":"CVE Terms of Use","modified":"2025-04-22T15:58:52.978Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-46162","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-46162","licence":"Public domain","modified":"2026-06-17T05:11:20.207Z"}],"updatedAt":"2026-11-25T22:58:17.149Z","epss":{"score":0.01342,"percentile":0.72187,"date":"2026-12-02T12:00:21.000Z"}}