Stored Cross-Site Scripting Vulnerability in Pragdave Earmark Library
CVE-2026-48591

4.8MEDIUM

Key Information:

Vendor

Pragdave

Status
Vendor
CVE Published:
17 June 2026

What is CVE-2026-48591?

The Pragdave Earmark library exhibits a vulnerability that allows for stored cross-site scripting (XSS) due to improper handling of HTML attribute values. Specifically, when a markdown link’s URL or title contains an unescaped double quote, it prematurely terminates the attribute and permits the browser to process subsequent bytes as authenticated HTML attributes. This can enable attackers to execute arbitrary JavaScript in the victim's browser, which poses a significant risk of compromising user data and security. Notably, the Earmark library is no longer maintained, with no patched versions released; therefore, users are strongly advised to migrate to an actively maintained Markdown library such as MDEx.

Affected Version(s)

earmark 1.4.1

earmark 8236a0570bd894b50e360da08131ec3294c20799

References

CVSS V4

Score:
4.8
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
None
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Peter Ullrich
Robert Dober
Jonatan Männchen / EEF
.