Description
Discourse is an open-source discussion platform. Prior to 2026.6.0, 2026.5.1, 2026.4.2, and 2026.1.5, insufficient SVG sanitization in upload and user avatar handling could lead to cross-site scripting when a user visited specific URLs that are not normally part of community browsing. This issue is fixed in versions 2026.6.0, 2026.5.1, 2026.4.2, and 2026.1.5.
Published: 2026-07-09
Score: 5.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Discourse, an open‑source discussion platform, fails to fully sanitize SVG files that are uploaded or used as avatars. A malicious user can host a specially crafted SVG that contains executable JavaScript. When a user accesses the image through its URL, the embedded script executes in the victim’s browser, resulting in cross‑site scripting (CWE‑79).

Affected Systems

All Discourse installations running any release earlier than v2026.6.0, v2026.5.1, v2026.4.2, or v2026.1.5 are affected. The issue applies to both source‑built and packaged distributions that have not applied the latest patches.

Risk and Exploitability

The CVSS score of 5.4 indicates a medium severity. The EPSS score of less than 1% suggests a low probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. Attackers can exploit the flaw remotely by uploading a malicious SVG or setting a malicious avatar. A victim must visit the image URL for the payload to take effect, and no privileged or network‑level access is required.

Generated by OpenCVE AI on July 29, 2026 at 11:46 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Discourse to v2026.6.0, v2026.5.1, v2026.4.2, or v2026.1.5 to apply the SVG sanitization patch.
  • If an upgrade is not immediately possible, disable SVG uploads and restrict avatar file types to non‑SVG formats such as PNG or JPG.
  • Monitor user activity for attempts to upload malformed SVGs or signs of XSS.

Generated by OpenCVE AI on July 29, 2026 at 11:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 10 Jul 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 10 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
First Time appeared Discourse
Discourse discourse
Vendors & Products Discourse
Discourse discourse

Thu, 09 Jul 2026 22:15:00 +0000

Type Values Removed Values Added
Description Discourse is an open-source discussion platform. Prior to 2026.6.0, 2026.5.1, 2026.4.2, and 2026.1.5, insufficient SVG sanitization in upload and user avatar handling could lead to cross-site scripting when a user visited specific URLs that are not normally part of community browsing. This issue is fixed in versions 2026.6.0, 2026.5.1, 2026.4.2, and 2026.1.5.
Title Discourse: Insufficient SVG sanitization logic
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}


Subscriptions

Discourse Discourse
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-10T20:31:50.782Z

Reserved: 2026-06-11T15:50:01.282Z

Link: CVE-2026-53962

cve-icon Vulnrichment

Updated: 2026-07-10T19:13:18.883Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T12:00:12Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')