Home / pragdave / earmark / CVE-2026-48591
CVE-2026-48591: is it exploited, and which versions of pragdave earmark are affected and fixed?
CVE-2026-48591 is an improper Neutralization of Script in Attributes in a Web Page vulnerability in pragdave earmark. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:08 UTC). Affected: earmark through 1.5.0-pre1 (GitHub advisory GHSA-52mm-h59v-f3c7). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (4.8, CVSS 4.0, from EEF).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:08 UTC, CVE record November 25, 2026, 04:42 UTC and NVD November 20, 2026, 10:04 UTC.
What is CVE-2026-48591?
Stored XSS via unescaped HTML attribute values in earmark
Improper Neutralization of Script in Attributes in a Web Page vulnerability in pragdave earmark allows stored cross-site scripting via unescaped HTML attribute values. Earmark.Transform._make_att1/2 in lib/earmark/transform.ex splices attribute values verbatim between two literal " bytes: [" ", name, "=\"" , value, "\""]. Text nodes are routed through the existing escape function which encodes " as ", but attribute values never visit that path. A markdown link whose URL or title contains a bare " closes the attribute early and lets the trailing bytes be parsed by the browser as fresh HTML attributes. For example, [click](http://example.com/?a=x" onerror="alert(1)) renders as <a href="http://example.com/?a=x" onerror="alert(1)">click</a>, executing arbitrary JavaScript in the victim's browser. The earmark library is no longer maintained and has been retired on Hex. No patched version will be released. All releases from 1.4.1 onward are affected, and users should migrate to a maintained Markdown library such as MDEx. This issue affects earmark: from 1.4.1 onward.
From the CVE record by EEF, last updated November 25, 2026, 04:37 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| pragdave | earmark | 1.4.1 and later | |
| pragdave | earmark pragdave/earmark | not stated |
As the CVE record by EEF states it, last updated November 25, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Hex | earmark | >= 1.4.1, <= 1.5.0-pre1 | none listed | GHSA-52mm-h59v-f3c7 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated June 18, 2026. Summary: earmark: Stored XSS via unescaped HTML attribute values.
How severe is CVE-2026-48591?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.8 | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N | EEF |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-48591 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, June 17, 2026)
- EPSS
- 0.14% probability of exploitation activity in the next 30 days, percentile 3.7 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-83 Improper Neutralization of Script in Attributes in a Web Page
- CWE-79 Improper Neutralization of Input During Web Page Generation
Is there a workaround? (from the CVE record)
Migrate to a maintained Markdown library such as MDEx (https://hex.pm/packages/mdex). The earmark package has been retired on Hex and no patched release will be made.
Where are the vendor advisories and references?
- EEF CNA record for CVE-2026-48591 related, third-party-advisory
- OSV record EEF-CVE-2026-48591 related
- Introducing commit 8236a05 in pragdave/earmark related
Who found and reported it?
- Peter Ullrich (finder)
- Jonatan Männchen / EEF (analyst)
- Robert Dober (remediation developer)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- May 22, 2026
- Published
- June 17, 2026, 16:42 UTC
- CVE record updated
- November 25, 2026, 04:37 UTC by EEF
- NVD
- Deferred, last modified November 20, 2026, 09:20 UTC
- Last checked
- CVE list November 25, 2026, 04:42 UTC; NVD November 20, 2026, 10:04 UTC; KEV December 3, 2026, 13:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2026-48591
Is CVE-2026-48591 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:08 UTC. FIRST's EPSS gives it a 0.14% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of pragdave earmark are affected by CVE-2026-48591?
earmark through 1.5.0-pre1, per the GitHub advisory GHSA-52mm-h59v-f3c7. The tables above give every range the sources list.
Which version fixes CVE-2026-48591?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2026-48591?
Medium (4.8, CVSS 4.0, from EEF). The severity table above shows each score with its source.
Where is the official record of CVE-2026-48591?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.