VYPR
Moderate severityNVD Advisory· Published Nov 7, 2018· Updated Aug 5, 2024

CVE-2018-19057

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.

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.

PackageAffected versionsPatched versions
simplemdenpm
<= 1.11.2

Affected products

1

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.