CVE-2023-30538
NixOS vulnerability analysis and mitigation

Overview

Discourse, an open source platform for community discussion, was found to contain a vulnerability (CVE-2023-30538) related to improper SVG file sanitization. The vulnerability was disclosed on April 18, 2023, affecting Discourse versions stable <= 3.0.2, beta <= 3.1.0.beta3, and tests-passed <= 3.1.0.beta3 (GitHub Advisory, NVD).

Technical details

The vulnerability stems from improper sanitization of SVG files, which could allow an attacker to execute arbitrary JavaScript code in users' browsers through crafted SVG file uploads. The vulnerability has been assigned a CVSS v3.1 base score of 5.4 MEDIUM (Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N) (NVD).

Impact

If exploited, this vulnerability allows attackers to execute arbitrary JavaScript code in users' browsers who view the maliciously crafted SVG file, potentially leading to cross-site scripting (XSS) attacks (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in versions after 3.0.2 (stable) and 3.1.0.beta3 (beta/tests-passed). For users unable to upgrade, two workarounds are available: 1) Enable CDN handling of uploads (ensuring the CDN sanitizes SVG files), or 2) Disable SVG file uploads by removing 'svg' from the 'authorized extensions' site setting or reset it to default settings (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-14330CRITICAL9.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox_esr
NoYesDec 09, 2025
CVE-2025-14329HIGH8.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox:*:*:*:*:esr:*:*:*
NoYesDec 09, 2025
CVE-2025-14333HIGH8.1
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025
CVE-2025-14331MEDIUM6.5
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025

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