PT-2026-50510 · Earmark · Earmark

·

CVE-2026-48591

·

Published

2026-06-17

·

Updated

2026-06-17

CVSS v4.0

4.8

Medium

VectorAV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Name of the Vulnerable Software and Affected Versions pragdave earmark versions 1.4.1 and later
Description Improper neutralization of script in attributes in a web page allows stored cross-site scripting via unescaped HTML attribute values. The function make att1/2 in lib/earmark/transform.ex splices attribute values verbatim between double quotes. While text nodes are processed by an escape function that encodes double quotes as ", attribute values bypass this path. Consequently, a markdown link containing a double quote in the URL or title can close the attribute prematurely, allowing the browser to parse subsequent bytes as new HTML attributes and execute arbitrary JavaScript.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-48591
GHSA-52MM-H59V-F3C7

Affected Products

Earmark