CVE-2018-16330: Pandao editor.md vulnerable to XSS in IMG attributes
6.1
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.47285%
CWE
Published
9/6/2018
Updated
9/8/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.0/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 manifests in how image attributes are processed during markdown-to-HTML conversion. The provided XSS payload demonstrates that event handlers in IMG attributes (like onerror) are not properly sanitized. This indicates the markdown parser's image handling function
lacks adequate attribute filtering/escaping. While exact function
names aren't available in public disclosures, the core issue resides in the image parsing logic of the markdown processor, as confirmed by the XSS execution through malformed IMG elements.