CVE-2023-29641: editor.md cross-site scripting via markdown injection

CVE-2023-29641 · Severity: low · CVSS 3.1 · Published 2023-05-01

editor.md is a popular open-source markdown editor component used in web applications. The vulnerability allows attackers to inject arbitrary JavaScript code through specially crafted markdown text, which is then executed in the browsers of users viewing or editing the content. This can lead to account compromise, session hijacking, or defacement of the application.

Technologies: editor.md (npm). Vendors: npm.

Quick answers

Is CVE-2023-29641 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2023-29641 being exploited in the wild.
How severe is CVE-2023-29641?
Low severity, with a CVSS score of 3.1, published 1 May 2023.
Which products and versions are affected?
editor.md (npm) SEMVER:introduced=0,last_affected=1.5.0.
Is there a fix for CVE-2023-29641?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2023-29641 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2023-29641?
Check whether you run editor.md (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

This is a Cross-site Scripting (CWE-79) vulnerability in editor.md version 1.5.0 and earlier, caused by insufficient sanitization of markdown input before rendering to HTML. An attacker can inject malicious HTML and JavaScript through markdown text—for example, embedding an img tag with an onerror event handler that executes arbitrary code. The vulnerability is triggered when a user edits or views markdown containing the payload, with no authentication required. The attack relies on user interaction (viewing the crafted markdown in the editor) but affects the security context of the application. Patches are available in versions after 1.5.0.

Affected products

  • pandao editor.md through 1.5.0

Identifiers

  • CVE-2023-29641
  • GHSA-847g-34c5-vvm8

Timeline

  • 2023-03-21: disclosed: Issue reported on GitHub
  • 2023-05-01: advisory: GitHub Security Advisory GHSA-847g-34c5-vvm8 and CVE-2023-29641 published

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.