Intel

AIKIDO-2026-746486

suneditor is vulnerable to Cross-Site Scripting (XSS)

CVE-2026-59167Published Jul 20, 2026
July 20, 2026

100

CVE Score

Critical

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

SunEditor's HTML sanitization does not fully strip executable event-handler attributes from crafted namespaced or custom tags such as <a:b>. An attacker can submit editor content containing these tags with attributes like onclick or JavaScript URI schemes, and the malicious attributes survive sanitization and execute when the rendered element is interacted with. Depending on how the editor output is stored and displayed, this enables stored or reflected cross-site scripting in the victim's browser context. The fix sanitizes code-view input before parsing and tightens the disallowed-tag matching to cover additional script-adjacent tags and namespaced selectors.

How do I fix this?

Upgrade the suneditor library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

0.0.1 - 2.47.10

Fixed in 2.47.11

Background info

suneditor is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 2.47.10.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea