CVE-2018-19057
Description
SimpleMDE 1.11.2 is vulnerable to stored XSS via crafted IMG onerror or malformed Markdown link syntax.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
SimpleMDE 1.11.2 is vulnerable to stored XSS via crafted IMG onerror or malformed Markdown link syntax.
Vulnerability
SimpleMDE 1.11.2, a JavaScript Markdown editor, fails to properly sanitize user input when rendering Markdown to HTML. This allows injection of an onerror attribute in a crafted ` element, or mishandling of [ and ( characters during construction of an ` element, leading to cross-site scripting (XSS) [1][2][3]. All versions up to and including 1.11.2 are affected [3].
Exploitation
An attacker can input a payload such as <img/id="confirm(/xss/)"/alt="/"src="/"onerror=eval(id)> or a Markdown link like `asdasd)` [4]. No authentication is required if the editor is publicly accessible. The payload is executed when the editor renders the content (e.g., preview or save) in a user's browser.
Impact
Successful exploitation allows arbitrary JavaScript execution in the context of the editor's domain. This can lead to theft of cookies, session tokens, or performing actions on behalf of the victim user, potentially compromising the entire application [2][4].
Mitigation
No official patch has been released; the project appears unmaintained (last commit in 2018) [1]. As a workaround, sanitize all user-supplied output server-side before rendering, or disable HTML rendering in the editor configuration. The vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.
- GitHub - sparksuite/simplemde-markdown-editor: A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
- NVD - CVE-2018-19057
- CVE-2018-19057 - GitHub Advisory Database
- there was a xss both in img and a label
AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
simplemdenpm | <= 1.11.2 | — |
Affected products
1Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/advisories/GHSA-wg85-p6j7-gp3wghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2018-19057ghsaADVISORY
- github.com/sparksuite/simplemde-markdown-editor/issues/721ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.