CVE-2026-53962

Discourse: Insufficient SVG sanitization logic

Published Jul 9, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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.
  • 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 August 1, 2026 at 13:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Discourse
Discourse discourse
Vendors & Products Discourse
Discourse discourse
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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 10, 2026, 8:31 PM
Reserved
Jun 11, 2026, 3:50 PM
Status
Analyzed
Published
Jul 9, 2026, 10:17 PM
Modified
Jul 14, 2026, 1:35 AM