CVE-2023-29641: editor.md vulnerable to Cross-site Scripting

editor.md Updated 02 Oct 2025

Summary

01/05/2023
No i
Moderate
6.1

CVE-2023-29641: editor.md vulnerable to Cross-site Scripting. Affects editor.md versions < 1.5.0. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

editor.md is an open-source JavaScript Markdown editor that allows users to write and preview Markdown content in real-time. It is commonly used in web applications and provides a convenient way to format and style text. However, versions up to 1.5.0 of editor.md are vulnerable to Cross-site Scripting (XSS) attacks.

Vulnerability Detail

The Cross-site Scripting (XSS) vulnerability in editor.md allows attackers to inject arbitrary web script or HTML through crafted markdown text. This means that an attacker can manipulate the markdown content in a way that executes malicious code when rendered by the editor. The impact of this vulnerability can range from stealing sensitive user information to performing actions on behalf of the user without their consent.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If upgrading to a patched version is not immediately feasible, a temporary workaround is to sanitize the markdown content before rendering it in the editor. This can be done by using a library or function that removes or escapes any potentially malicious HTML or script tags. Here is an example of how you can sanitize the markdown content using the DOMPurify library:

const DOMPurify = require('dompurify');

const sanitizedMarkdown = DOMPurify.sanitize(markdownContent);

Conclusion

In conclusion, editor.md versions up to 1.5.0 are vulnerable to Cross-site Scripting (XSS) attacks. It is crucial to upgrade to a patched version or sanitize the markdown content to mitigate the risk of exploitation. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for editor.md →

Share this vulnerability

FAQ

Cross-site Scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. This can lead to the theft of sensitive information or the execution of unauthorized actions.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just the package-lock.json file.

The CVSS score of this vulnerability is 6.1, indicating a moderate severity level.

Yes, a patch is available for this vulnerability. It is recommended to upgrade to a version of editor.md that is not affected by this issue.

At the time of this report, there are no known exploits of this vulnerability. However, it is important to address the issue promptly to prevent any potential attacks.

Related vulnerabilities

Recent vulnerabilities recorded for editor.md.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback