CVE-2019-14517: pandao editor.md cross-site scripting in JavaScript protocol handler

CVE-2019-14517 · Severity: low · CVSS 3 · Published 2019-08-23

editor.md is a popular open-source markdown editor used in web applications. A cross-site scripting vulnerability allows attackers to inject malicious JavaScript code that executes in users' browsers when they interact with the editor. This can lead to account hijacking, cookie theft, and unauthorized actions performed on behalf of the user.

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

Quick answers

Is CVE-2019-14517 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2019-14517 being exploited in the wild.
How severe is CVE-2019-14517?
Low severity, with a CVSS score of 3, published 23 August 2019.
Which products and versions are affected?
pandao editor.md 1.5.0.
Is there a fix for CVE-2019-14517?
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-2019-14517 attacked?
It is attacked over the network.
Am I affected by CVE-2019-14517?
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 stored or reflected cross-site scripting (CWE-79) flaw in pandao editor.md 1.5.0. The editor fails to properly sanitize and escape input containing the JavaScript protocol handler (javascript: URLs), allowing an attacker to embed malicious scripts that execute when the content is rendered. The attack requires minimal preconditions—an attacker can inject the payload through the editor's input, and it will execute when viewed in a user's browser with typical user interaction (UI required). A successful exploit grants the attacker access to the victim's session cookies and DOM context. The vulnerability affects npm package editor.md versions 1.* up to at least 1.5.0; a fix should involve implementing strict input validation and output encoding for protocol handlers.

Affected products

  • pandao editor.md 1.5.0

Identifiers

  • CVE-2019-14517
  • GHSA-5q54-8p9j-x74j

Timeline

  • 2019-07-22: disclosed: XSS vulnerability reported as issue #709 on GitHub
  • 2019-08-23: advisory: GHSA-5q54-8p9j-x74j published

References

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