Vulnerabilities in pkg:npm/mavon-editor

PACKAGE
Advisory Summary

GHSA-jfcc-rm7f-xgf8 is a MODERATE (CVSS 6.5) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Mavon editor libraries in the npm ecosystem. The issue involves cross-site scripting in mavon-editor. Remediation is available by upgrading affected packages to version 2.8.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/mavon-editor

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/mavon-editor. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-jfcc-rm7f-xgf8 - MODERATE Cross-Site Scripting in mavon-editor

GHSA-jfcc-rm7f-xgf8 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-jfcc-rm7f-xgf8
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Mavon editor
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix GHSA-jfcc-rm7f-xgf8

To remediate this vulnerability, upgrade all affected Mavon editor dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

mavon-editor fixed: 2.8.2
npm install mavon-editor@2.8.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls mavon-editor

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-jfcc-rm7f-xgf8, inspect your project dependencies using npm:

npm ls mavon-editor

Analyze the terminal output to locate any version of Mavon editor in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.8.2), your application is affected.

Note: The npm ls mavon-editor command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Mavon editor, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

All versions of `mavon-editor` are vulnerable to Cross-Site Scripting. The package fails to sanitize entered input, allowing attackers to execute arbitrary JavaScript in a victim's browser. ## Recommendation No fix is currently available. Consider using an alternative package until a fix is made available.

GHSA-jfcc-rm7f-xgf8 Affected Mavon editor Versions

1 component(s)
Fixed Versions:
2.8.2
Product / Package Ecosystem Affected Versions Fixed Version
mavon-editor
npm
< 2.8.2
2.8.2

References

Frequently Asked Questions

What is GHSA-jfcc-rm7f-xgf8?
GHSA-jfcc-rm7f-xgf8 is a security vulnerability in Mavon editor involving Cross-Site Scripting in mavon-editor under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Mavon editor versions are affected?
Affected versions include releases prior to 2.8.2 across affected packages: mavon-editor.
What version fixes GHSA-jfcc-rm7f-xgf8?
Upgrading to 2.8.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mavon-editor affected?
Yes, mavon-editor is affected in releases prior to 2.8.2. Upgrade your dependency to 2.8.2 or later.
What is the CVSS score of GHSA-jfcc-rm7f-xgf8?
GHSA-jfcc-rm7f-xgf8 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with GHSA-jfcc-rm7f-xgf8?
GHSA-jfcc-rm7f-xgf8 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check npm dependencies for GHSA-jfcc-rm7f-xgf8?
Run the dependency tree command: 'npm ls mavon-editor'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jfcc-rm7f-xgf8",
  "modified" : "2021-09-29T18:37:46Z",
  "published" : "2020-09-03T20:36:35Z",
  "aliases" : [ ],
  "summary" : "Cross-Site Scripting in mavon-editor",
  "details" : "All versions of `mavon-editor` are vulnerable to Cross-Site Scripting. The package fails to sanitize entered input, allowing attackers to execute arbitrary JavaScript in a victim's browser.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "mavon-editor"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.8.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/hinesboy/mavonEditor/issues/472"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hinesboy/mavonEditor/pull/548"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hinesboy/mavonEditor/commit/5592ec3761bd3b5a12ba6f99ce3c4057c6e33f72"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/hinesboy/mavonEditor"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JS-MAVONEDITOR-459108"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/1169"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/package/mavon-editor"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T18:49:47Z",
    "nvd_published_at" : null
  }
}