Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. jodit
  4. ›
  5. CVE-2026-65841

CVE-2026-65841: Jodit has cross-site scripting (XSS) via <script> nested in SVG that bypasses clean-html sanitization

July 31, 2026

A <script> element placed directly inside an <svg> (or MathML) container was not removed by Jodit’s clean-html sanitizer.

The deny/allow tag filter compared node.nodeName against an upper-cased tag hash, but foreign (SVG/MathML) elements preserve their original-case node names — an SVG script reports "script", not "SCRIPT" — so the default denyTags list (which includes script) did not match it. The script therefore survived in the editor value and serialized output, where it could execute when the content was loaded back into a page or editor.

References

  • github.com/advisories/GHSA-45qg-252v-3f7p
  • github.com/xdan/jodit/commit/49a31f451f6b686f5610022a1d4406ee85138dc5
  • github.com/xdan/jodit/releases/tag/4.13.6
  • github.com/xdan/jodit/security/advisories/GHSA-45qg-252v-3f7p
  • nvd.nist.gov/vuln/detail/CVE-2026-65841

Code Behaviors & Features

Detect and mitigate CVE-2026-65841 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.13.6

Fixed versions

  • 4.13.6

Solution

Upgrade to version 4.13.6 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)

Source file

npm/jodit/CVE-2026-65841.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:18:11 +0000.