{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-46162","id":"CVE-2022-46162","title":"Discourse BBCode plugin vulnerable to arbitrary CSS injection","description":"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 a","descriptionLong":"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.","published":"2022-11-30T00:00:00.000Z","updated":"2026-10-28T02:31:03.719882329Z","reserved":"2022-11-28T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["discourse-bbcode"],"affectedProducts":[{"vendor":"discourse","product":"discourse-bbcode","defaultStatus":null,"versions":[{"version":"< 91478f5cfecdcc43cf85b997168a8ecfd0f8df90","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-74","CWE-79"],"aliases":["GHSA-8c87-xpqv-c7mp"],"references":[{"url":"https://github.com/discourse/discourse-bbcode/security/advisories/GHSA-8c87-xpqv-c7mp","tags":["x_transferred","Exploit","Vendor Advisory","advisory"]},{"url":"https://github.com/discourse/discourse-bbcode/commit/91478f5cfecdcc43cf85b997168a8ecfd0f8df90","tags":["x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/46xxx/CVE-2022-46162.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-46162","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.01208,"epssPercentile":0.69001,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-46162","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-46162","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-46162","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-46162","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}