CVE-2026-124491

SunEditor before 3.4.0 Stored XSS via FileUpload Plugin Filename

Published Nov 8, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
SunEditor before 3.4.0 contains a stored cross-site scripting vulnerability in the FileUpload plugin create() method that assigns server-returned file names to innerHTML without escaping. Attackers can upload files with HTML-laden names that bypass html.clean() and execute JavaScript in victims' browsers when content or gallery items load, enabling session theft.

Analysis

AI-generated

Technical impact

SunEditor before version 3.4.0 contains a stored cross‑site scripting flaw in its FileUpload plugin. The create() method assigns the filename returned by the server directly to innerHTML without escaping. An attacker can upload a file whose name contains malicious HTML or script. When the file is later displayed as a content or gallery item, the browser will execute the embedded JavaScript, allowing the attacker to steal the victim’s session or perform other client‑side actions. This vulnerability can compromise the confidentiality of user data via client‑side injection.

Affected Systems

All installations of SunEditor produced by JiHong88 that use a version earlier than 3.4.0 are affected. The flaw is tied to the FileUpload plugin and exists in any build that includes that plugin with the vulnerable create() implementation. No specific vendor patch details are provided, so any upgrade that includes version 3.4.0 or later resolves the issue.

Risk and Exploitability

The CVSS base score of 5.3 indicates a medium severity. The EPSS score is not available, so the current exploitation probability is unknown, but the lack of a KEV listing does not preclude independent attackers from targeting it. Exploitation requires the ability to upload a file through the vulnerable plugin, a capability typically granted to authenticated users. Once uploaded, the malicious filename is rendered in the browser’s DOM, effectively delivering the client‑side payload. The attack vector is inferred to be the FileUpload interface accessible via the editor’s UI or API, and requires that the victim view the affected content or gallery item.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SunEditor to version 3.4.0 or newer.
  • Disable or restrict the FileUpload plugin for untrusted or anonymous users.
  • Implement server‑side filename validation to strip or encode any HTML or script content before assigning it to innerHTML.

Generated by OpenCVE AI on November 8, 2026 at 14:36 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': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Jihong88
Jihong88 suneditor
Vendors & Products Jihong88
Jihong88 suneditor
Type Values Removed Values Added
Description SunEditor before 3.4.0 contains a stored cross-site scripting vulnerability in the FileUpload plugin create() method that assigns server-returned file names to innerHTML without escaping. Attackers can upload files with HTML-laden names that bypass html.clean() and execute JavaScript in victims' browsers when content or gallery items load, enabling session theft.
Title SunEditor before 3.4.0 Stored XSS via FileUpload Plugin Filename
Weaknesses CWE-79
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 9, 2026, 2:18 PM
Reserved
Nov 8, 2026, 2:21 AM
Status
Deferred
Published
Nov 8, 2026, 2:18 PM
Modified
Nov 12, 2026, 9:36 PM