CVE-2020-19698: Cross-Site Scripting (XSS) in Pandao Editor.md

editor.md Updated 02 Oct 2025

Summary

04/04/2023
No i
Moderate
6.1

CVE-2020-19698: Pandao Editor.md vulnerable to cross-site scripting (XSS) in editor parameter. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Pandao Editor.md is an npm package that provides a markdown editor for web applications. It allows users to create and edit markdown content with a live preview. The package is widely used and offers various features for formatting and styling markdown text. However, version 1.5.0 of Pandao Editor.md is vulnerable to a cross-site scripting (XSS) attack.

Vulnerability Detail

The vulnerability in Pandao Editor.md version 1.5.0 is due to insufficient input sanitization in the editor parameter. An attacker can exploit this vulnerability by injecting crafted scripts into the editor parameter, which will be executed when the markdown content is rendered. This can lead to arbitrary code execution in the context of the user's browser, potentially allowing the attacker to steal sensitive information or perform unauthorized actions on behalf of the user.

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

As a temporary workaround, developers can manually sanitize the editor parameter before rendering it. This can be done by using a library or function that escapes or removes any potentially malicious content from the input. Here is an example of how to sanitize the editor parameter using the DOMPurify library:

const DOMPurify = require('dompurify');

const sanitizedEditor = DOMPurify.sanitize(editor);

Conclusion

In conclusion, Pandao Editor.md version 1.5.0 is vulnerable to cross-site scripting (XSS) attacks due to insufficient input sanitization. Developers should upgrade to a patched version, sanitize user input, and stay vigilant for security updates. For further assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for editor.md →

Share this vulnerability

FAQ

This vulnerability allows an attacker to execute arbitrary code in the user's browser, potentially leading to sensitive information theft or unauthorized actions on behalf of the user.

The vulnerability affects version 1.5.0 of Pandao Editor.md. Earlier versions may also be affected, but this has not been confirmed.

Yes, the maintainers of Pandao Editor.md have released a fix for this vulnerability in a later version. It is recommended to upgrade to the latest version to mitigate the risk.

There are currently no known exploits of this vulnerability. However, it is important to address this issue promptly to prevent potential attacks.

To protect your application, make sure to upgrade to a patched version of Pandao Editor.md and sanitize user input before rendering it in the editor. Regularly monitor for security updates and apply them promptly.

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