Cross-site Scripting (XSS) Affecting editor.md package, versions >0.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.09% (39th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-EDITORMD-536076
  • published 26 Nov 2019
  • disclosed 1 Aug 2019
  • credit pzyc0k

How to fix?

There is no fixed version for editor.md.

Overview

editor.md is a open source embeddable online markdown editor (component), based on CodeMirror & jQuery & Marked.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the Javascript: string.

##POC by pzyc0k: [xss poc](Javascript:alert("pzyc0 poc xss with cookie: " + document.cookie))

References

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
6.1 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Changed
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    None