SUNEDITOR · CVE-2026-124494 · Package
NO FIX YET · SEE WHAT TO DO
SunEditor, a rich-text editor library, has a flaw where its html.clean() sanitizer decodes named entities such as : to an empty string, letting attackers store javascript: links that pass the safety check. When a victim clicks a stored link, the attacker's JavaScript runs in their browser.
first public Oct 23, 2026 · 1 source
Check it with your coding agent
It checks your repository and tells you if you’re affected, with the fix.
Applications that embed SunEditor and let users author or store HTML content with links, where stored content is later rendered to other users. Sites that do not use SunEditor, or that only show content authored by trusted staff, face less exposure. unknown whether other sanitizer paths are affected.
Not affected if no-suneditor, trusted-authors-only
Who cares javascript, user-generated-content, web-apps
package.json or lockfile, looking for versions below 3.4.0suneditor to find where the editor and its html.clean() sanitizer are used3.4.0 or laterSunEditor before 3.4.0 contains a stored cross-site scripting vulnerability because the html.clean() sanitizer's _normalizeURL() function decodes named entities like : to an empty string. Attackers can inject href values such as javascript: that pass the _isSafeURL() check but are decoded by browsers, executing JavaScript when victims click stored links.
This page as .md · .json · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.
Are you affected?
Tell InfraStack what you run. It checks this one, and every next one, against your stack.
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.