CVE-2018-16330: XSS Vulnerability in editor.md

editor.md Updated 02 Oct 2025

Summary

06/09/2018
No i
Moderate
6.1

CVE-2018-16330: Pandao editor.md vulnerable to XSS in IMG attributes. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Editor.md is an open-source Markdown editor that allows users to write and edit Markdown documents. It provides a user-friendly interface with various features for formatting and previewing Markdown content. However, a vulnerability has been discovered in version 1.5.0 of Editor.md that allows for cross-site scripting (XSS) attacks. This vulnerability can be exploited by injecting crafted attributes into an invalid IMG element.

Vulnerability Detail

The vulnerability in Editor.md version 1.5.0 arises from a lack of proper input sanitization when handling IMG elements. An attacker can exploit this by injecting malicious code into the attributes of an IMG element, which will be executed when the Markdown document is rendered. This can lead to the execution of arbitrary JavaScript code in the context of the user's browser, potentially compromising their sensitive information or performing unauthorized actions. The vulnerability has a CVSS score of 6.1, indicating a moderate severity level.

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, developers can implement a workaround to mitigate the risk of exploitation. One possible workaround is to manually sanitize and validate user-generated Markdown content before rendering it with Editor.md. This can be achieved by using a library or custom code that sanitizes HTML and removes any potentially malicious attributes or scripts. By implementing this workaround, the application can prevent the execution of injected JavaScript code and protect users from XSS attacks.

Conclusion

In conclusion, the XSS vulnerability in Editor.md version 1.5.0 can be exploited by injecting crafted attributes into an invalid IMG element. This can lead to the execution of arbitrary JavaScript code in the user's browser, potentially compromising their sensitive information or performing unauthorized actions. It is crucial to upgrade to a patched version of Editor.md or implement a workaround to mitigate the risk. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for editor.md →

Share this vulnerability

FAQ

The vulnerability allows attackers to execute arbitrary JavaScript code in the context of the user's browser. This can lead to various consequences, including the theft of sensitive information, session hijacking, or performing unauthorized actions on behalf of the user.

While specific exploits may not be publicly available, the vulnerability has been identified and documented. It is crucial to address this vulnerability promptly to prevent potential exploitation.

No, only version 1.5.0 of Editor.md is known to be affected by this vulnerability. It is recommended to upgrade to a patched version to mitigate the risk.

Yes, the CVSS score for this vulnerability is 6.1, indicating a moderate severity level. This score helps assess the potential impact and prioritize the remediation process.

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