---
id: CVE-2026-54606
title: >-
  SunEditor is a lightweight and powerful WYSIWYG editor in vanilla JavaScript
  with no dependencies
summary: >-
  SunEditor is a lightweight and powerful WYSIWYG editor in vanilla JavaScript
  with no dependencies. Prior to 3.1.4, the SunEditor Embed plugin in
  src/plugins/modal/embed.js parses attacker-controlled raw embed HTML with
  DOMParser and proc…
severity: high
cwe:
  - CWE-79
vendor: suneditor
product: suneditor
affected:
  - suneditor <= 3.1.3
patched:
  - suneditor 3.1.4
published: '2026-08-26'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T21:09:13.080'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-54606'
references:
  - url: >-
      https://github.com/JiHong88/suneditor/commit/9d43a5e082101d2d6475cba86e0d58d7c2cf6677
    label: security-advisories@github.com
  - url: 'https://github.com/JiHong88/suneditor/issues/1649'
    label: security-advisories@github.com
  - url: 'https://github.com/JiHong88/suneditor/releases/tag/3.1.4'
    label: security-advisories@github.com
  - url: >-
      https://github.com/JiHong88/suneditor/security/advisories/GHSA-w93q-cq9w-58p7
    label: security-advisories@github.com
  - url: >-
      https://github.com/JiHong88/suneditor/security/advisories/GHSA-w93q-cq9w-58p7
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://github.com/advisories/GHSA-w93q-cq9w-58p7'
tags:
  - nvd
  - ghsa
  - npm
epss: 0.00581
epssPercentile: 0.45433
aliases:
  - GHSA-w93q-cq9w-58p7
ecosystem: npm
ingestedAt: '2026-08-26T15:45:52.487Z'
---

## Overview

SunEditor is a lightweight and powerful WYSIWYG editor in vanilla JavaScript with no dependencies. Prior to 3.1.4, the SunEditor Embed plugin in src/plugins/modal/embed.js parses attacker-controlled raw embed HTML with DOMParser and processes the resulting DOM nodes. When an external script element follows a valid iframe, the plugin recreates a script element from the attacker-controlled src attribute and appends it to the live DOM, causing JavaScript execution in the editor page. If an application stores or reflects SunEditor content without additional backend sanitization, an attacker who can submit embed HTML can trigger stored or reflected cross-site scripting when another user opens, previews, renders, or edits the content, enabling access to page data and account actions as the victim. This issue is fixed in version 3.1.4.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-54606)

Affected packages:

- `suneditor <= 3.1.3`

Patched in:

- `suneditor 3.1.4`

Source: https://github.com/advisories/GHSA-w93q-cq9w-58p7
