CVE-2018-19056: Vulnerability in editor.md

editor.md Updated 02 Oct 2025

Summary

09/11/2018
No i
Moderate
6.1

CVE-2018-19056: Pandao editor.md vulnerable to DOM XSS. 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

editor.md is an npm package that provides a Markdown editor with various features. It allows users to create and edit Markdown documents with ease. However, the package is vulnerable to a moderate severity DOM XSS (Cross-Site Scripting) vulnerability in version 1.5.0. This vulnerability occurs when an input starts with a "<<" substring, which is mishandled during the construction of an A element.

Vulnerability Detail

The DOM XSS vulnerability in editor.md version 1.5.0 can be exploited by an attacker to inject malicious scripts into a web application that uses this package. By crafting an input that starts with a "<<" substring, an attacker can bypass input sanitization and execute arbitrary JavaScript code in the context of the victim's browser. This can lead to various security risks, including unauthorized access to sensitive information, session hijacking, and remote code execution.

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 user input to prevent the injection of malicious scripts. This can be done by implementing input validation and sanitization techniques, such as HTML entity encoding or using a dedicated library for input sanitization. However, applying a proper fix by upgrading to a patched version is strongly recommended.

Conclusion

In conclusion, the editor.md package version 1.5.0 is vulnerable to a DOM XSS vulnerability that can be exploited to execute arbitrary JavaScript code in the victim's browser. To mitigate this risk, it is crucial to upgrade to a patched version of editor.md and apply proper input validation and sanitization techniques. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for editor.md →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary JavaScript code in the victim's browser, potentially leading to unauthorized access, session hijacking, and remote code execution.

The vulnerability affects version 1.5.0 of editor.md. Other versions may also be affected, so it is recommended to upgrade to a patched version.

There are no known public exploits for this vulnerability at the moment. However, it is important to apply the recommended fix to prevent potential attacks.

Applying input validation and sanitization techniques can help mitigate the risk of this vulnerability. However, the best mitigation is to upgrade to a patched version of editor.md.

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