CVE-2020-19698: Pandao Editor.md vulnerable to cross-site scripting (XSS) in editor parameter
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.44408%
CWE
Published
4/4/2023
Updated
4/7/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
editor.md | npm | <= 1.5.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper input sanitization in HTML processing. The pull request #860 specifically modifies the filterHTML
function's regex patterns to address self-closing tags and event handler attributes. Multiple GitHub issues (#700, #715, etc.) demonstrate that malicious scripts/attributes persisted through the original filtering logic. The function's responsibility for HTML sanitization and the direct correlation between its regex shortcomings and the XSS payloads described in PoCs confirm its vulnerability.