CVE-2022-46148
NixOS vulnerability analysis and mitigation

Overview

Discourse, an open-source messaging platform, was found to contain a self-XSS vulnerability (CVE-2022-46148) affecting 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. The vulnerability was discovered and disclosed on November 29, 2022 (GitHub Advisory).

Technical details

The vulnerability allows users to perform self-XSS attacks by composing malicious messages and navigating to the drafts page. The severity of this vulnerability is rated as HIGH with a CVSS v3.1 base score of 7.1 (Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H). This vulnerability can escalate to a full XSS attack on sites that have modified or disabled Discourse's default Content Security Policy (GitHub Advisory, NVD).

Impact

The vulnerability can lead to a full Cross-Site Scripting (XSS) attack on sites where the default Content Security Policy has been modified or disabled. This could potentially result in unauthorized access to sensitive information, session hijacking, or other malicious actions typically associated with XSS attacks (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in the latest stable, beta, and tests-passed versions of Discourse. Users are advised to upgrade to versions newer than 2.8.10 for the stable branch or versions newer than 2.9.0.beta11 for the beta and tests-passed branches. Additionally, maintaining the default Content Security Policy helps mitigate the risk of full XSS attacks (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management