Cross-Site Scripting Vulnerability in mavon-editor

mavon-editor Updated 02 Oct 2025

Summary

03/09/2020
MODERATE
Yes i
Moderate
6.5

GHSA-jfcc-rm7f-xgf8: Cross-Site Scripting in mavon-editor. Affects mavon-editor versions < 2.8.2. Fixed in 2.8.2. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

mavon-editor is an npm package that provides a Markdown editor for Vue.js applications. It allows users to input and edit Markdown content, which is then rendered as HTML. However, all versions of mavon-editor are vulnerable to Cross-Site Scripting (XSS) attacks. This means that the package does not properly sanitize user input, allowing attackers to execute arbitrary JavaScript code in a victim's browser.

Vulnerability Detail

The Cross-Site Scripting vulnerability in mavon-editor arises from the lack of input sanitization. Attackers can exploit this vulnerability by injecting malicious JavaScript code into user input fields, such as text areas or form inputs. When the user's input is rendered as HTML, the injected code is executed in the victim's browser, potentially leading to unauthorized actions, data theft, or other malicious activities. This vulnerability has a CVSS score of 6.5, indicating a moderate severity level.

How To Fix

Latest published version: 2.10.4 as of 22 Oct 2026

npm install mavon-editor@2.10.4

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.8.2

This is the first release that contains the fix.

npm install mavon-editor@2.8.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As there is no fix available, a possible workaround is to implement input sanitization on the server-side. By properly validating and sanitizing user input before rendering it as HTML, the risk of Cross-Site Scripting attacks can be mitigated. Here is an example of server-side input sanitization in Node.js using the xss library:

const xss = require('xss');

const userInput = req.body.input;
const sanitizedInput = xss(userInput);

// Use the sanitized input in your application

Note that this workaround should be used with caution and thoroughly tested to ensure it does not introduce any unintended side effects.

Conclusion

The Cross-Site Scripting vulnerability in mavon-editor exposes users to the risk of arbitrary JavaScript execution in their browsers. As no fix is currently available, it is recommended to consider using an alternative package and stay informed about updates on the vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for mavon-editor →

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 various attacks, such as stealing sensitive information, session hijacking, or defacing websites.

The mavon-editor XSS vulnerability can allow attackers to execute arbitrary JavaScript code in a victim's browser. This can lead to unauthorized actions, data theft, cookie stealing, session hijacking, or other malicious activities.

No, there is currently no fix available for the mavon-editor XSS vulnerability. It is recommended to use an alternative package until a fix is released.

To mitigate the risk of XSS attacks, it is important to properly sanitize and validate user input before rendering it as HTML. Use libraries or frameworks that provide built-in protection against XSS, such as template engines that automatically escape user input.

You can monitor the official mavon-editor repository or advisory sources for updates on the XSS vulnerability. Additionally, you can use vulnerability monitoring services like Vulert (https://vulert.com) to receive real-time alerts and notifications about open-source vulnerabilities in your software.

How To Fix

Latest published version: 2.10.4 as of 22 Oct 2026

npm install mavon-editor@2.10.4

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.8.2

This is the first release that contains the fix.

npm install mavon-editor@2.8.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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