{"answers":{"affected":"2 open source packages ship an affected version, including suneditor.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54606 exists.","fix":"Upgrade suneditor to 3.1.4 or later.","what":"CVE-2026-54606 is a high-severity cross-site scripting vulnerability in JiHong88 suneditor, published on 26 Aug 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-54606 and fix it if it is affected.\n\nWhat it is: CVE-2026-54606 is a high-severity cross-site scripting vulnerability in JiHong88 suneditor, published on 26 Aug 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54606 exists.\n\nAffected packages and fixed versions:\n- suneditor (npm): affected all versions; fixed in 3.1.4\n- suneditor (npm): affected all versions; fixed in 3.1.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-54606/ (Markdown: https://insights.sbomify.com/CVE-2026-54606/index.md)","id":"CVE-2026-54606","markdown":"https://insights.sbomify.com/CVE-2026-54606/index.md","name":"CVE-2026-54606","record":{"aliases":["GHSA-w93q-cq9w-58p7"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript WYSIWYG editor","requires_auth":"low_privilege","summary":"An attacker can execute arbitrary JavaScript in the victim's browser by injecting a malicious script element into the SunEditor Embed plugin, leading to potential account takeover.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.5,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"SunEditor: DOM XSS in SunEditor Embed Plugin via External Script Element After Iframe Embed","id":"CVE-2026-54606","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"FastGPT: SSRF in HTTP-tool OpenAPI schema importer via SwaggerParser $ref (bypasses the isInternalAddress guard)","id":"CVE-2026-54607"},"packages":[{"ecosystem":"npm","fixed":["3.1.4"],"introduced":["0"],"last_affected":[],"package":"suneditor","purl":null,"source":"GHSA-w93q-cq9w-58p7"},{"ecosystem":"npm","fixed":["3.1.4"],"introduced":["0"],"last_affected":[],"package":"suneditor","purl":"pkg:npm/suneditor","source":"GHSA-w93q-cq9w-58p7"}],"prev":{"headline":"OAuth: Cross-origin token-request redirects can expose signed request metadata","id":"CVE-2026-54605"},"products":["suneditor"],"published":"2026-08-26","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-26","vendors":["JiHong88"]},"summary":"An attacker can execute arbitrary JavaScript in the victim's browser by injecting a malicious script element into the SunEditor Embed plugin, leading to potential account takeover.","url":"https://insights.sbomify.com/CVE-2026-54606/"}