CVE-2018-19056: Pandao editor.md DOM XSS in link parsing

CVE-2018-19056 · Severity: low · CVSS 3 · Published 2018-11-09

Pandao editor.md is a popular JavaScript markdown editor library used by web developers to enable rich text editing in web applications. A DOM-based cross-site scripting (XSS) vulnerability allows attackers to inject malicious JavaScript code through specially crafted markdown input, which can lead to session hijacking, credential theft, or execution of arbitrary actions on behalf of users who view the rendered content.

Technologies: editor.md (npm). Vendors: npm.

Quick answers

Is CVE-2018-19056 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2018-19056 being exploited in the wild.
How severe is CVE-2018-19056?
Low severity, with a CVSS score of 3, published 9 November 2018.
Which products and versions are affected?
Pandao editor.md 1.5.0.
Is there a fix for CVE-2018-19056?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2018-19056 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2018-19056?
Check whether you run editor.md (npm). Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The vulnerability is a DOM-based XSS (CWE-79) in editor.md version 1.5.0, triggered by markdown input starting with the "<<" substring. The vulnerability occurs during construction of anchor (<a>) elements from markdown link syntax; insufficient input validation allows attackers to inject malicious JavaScript via the href attribute (e.g., "javascript:" URLs). The attack vector is network-based and requires no authentication, but does require user interaction (rendering and clicking the malicious link). An attacker can craft markdown content with JavaScript URIs that executes when a victim clicks the generated link. A patch or updated version may be available from the project repository.

Affected products

  • Pandao editor.md 1.5.0

Identifiers

  • CVE-2018-19056
  • GHSA-x3g3-334f-q6h4

Timeline

  • 2018-11-07: disclosed
  • 2018-11-09: advisory

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.