CVE-2026-48591 (GCVE-0-2026-48591)
Vulnerability from cvelistv5 – Published: 2026-06-17 16:42 – Updated: 2026-11-25 04:37- CWE-83 - Improper Neutralization of Script in Attributes in a Web Page
| URL | Tags |
|---|---|
| https://cna.erlef.org/cves/CVE-2026-48591.html | relatedthird-party-advisory |
| https://osv.dev/vulnerability/EEF-CVE-2026-48591 | related |
| https://github.com/pragdave/earmark/commit/8236a0… | related |
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-48591",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-06-17T18:25:40.841347Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-06-17T18:25:55.606Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:pragdave:earmark:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Earmark.Transform\u0027"
],
"packageName": "earmark",
"packageURL": "pkg:hex/earmark",
"product": "earmark",
"programFiles": [
"lib/earmark/transform.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Earmark.Transform\u0027:_make_att1/2"
},
{
"name": "\u0027Elixir.Earmark.Transform\u0027:make_att/2"
}
],
"repo": "https://github.com/pragdave/earmark",
"vendor": "pragdave",
"versions": [
{
"lessThan": "*",
"status": "affected",
"version": "1.4.1",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:pragdave:earmark:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Earmark.Transform\u0027"
],
"packageName": "pragdave/earmark",
"packageURL": "pkg:github/pragdave/earmark",
"product": "earmark",
"programFiles": [
"lib/earmark/transform.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Earmark.Transform\u0027:_make_att1/2"
},
{
"name": "\u0027Elixir.Earmark.Transform\u0027:make_att/2"
}
],
"repo": "https://github.com/pragdave/earmark",
"vendor": "pragdave",
"versions": [
{
"lessThan": "*",
"status": "affected",
"version": "8236a0570bd894b50e360da08131ec3294c20799",
"versionType": "git"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:pragdave:earmark:*:*:*:*:*:*:*:*",
"versionStartIncluding": "1.4.1",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "analyst",
"value": "Jonatan M\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Robert Dober"
}
],
"datePublic": "2026-06-17T16:42:37.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eImproper Neutralization of Script in Attributes in a Web Page vulnerability in pragdave earmark allows stored cross-site scripting via unescaped HTML attribute values.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eEarmark.Transform._make_att1/2\u003c/code\u003e in \u003ccode\u003elib/earmark/transform.ex\u003c/code\u003e splices attribute values verbatim between two literal \u003ccode\u003e\"\u003c/code\u003e bytes: \u003ccode\u003e[\" \", name, \"=\\\"\" , value, \"\\\"\"]\u003c/code\u003e. Text nodes are routed through the existing escape function which encodes \u003ccode\u003e\"\u003c/code\u003e as \u003ccode\u003e\u0026amp;quot;\u003c/code\u003e, but attribute values never visit that path. A markdown link whose URL or title contains a bare \u003ccode\u003e\"\u003c/code\u003e closes the attribute early and lets the trailing bytes be parsed by the browser as fresh HTML attributes. For example, \u003ccode\u003e[click](http://example.com/?a=x\" onerror=\"alert(1))\u003c/code\u003e renders as \u003ccode\u003e\u0026lt;a href=\"http://example.com/?a=x\" onerror=\"alert(1)\"\u0026gt;click\u0026lt;/a\u0026gt;\u003c/code\u003e, executing arbitrary JavaScript in the victim\u0027s browser.\u003c/p\u003e\n\u003cp\u003eThe 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.\u003c/p\u003e\n\u003cp\u003eThis issue affects earmark: from 1.4.1 onward.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Improper Neutralization of Script in Attributes in a Web Page vulnerability in pragdave earmark allows stored cross-site scripting via unescaped HTML attribute values.\n\n`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 `\u0026quot;`, 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 `\u003ca href=\"http://example.com/?a=x\" onerror=\"alert(1)\"\u003eclick\u003c/a\u003e`, executing arbitrary JavaScript in the victim\u0027s browser.\n\nThe 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.\n\nThis issue affects earmark: from 1.4.1 onward."
}
],
"value": "Improper Neutralization of Script in Attributes in a Web Page vulnerability in pragdave earmark allows stored cross-site scripting via unescaped HTML attribute values.\n\nEarmark.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 \u0026quot;, 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 \u003ca href=\"http://example.com/?a=x\" onerror=\"alert(1)\"\u003eclick\u003c/a\u003e, executing arbitrary JavaScript in the victim\u0027s browser.\n\nThe 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.\n\nThis issue affects earmark: from 1.4.1 onward."
}
],
"impacts": [
{
"capecId": "CAPEC-243",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-243 XSS Targeting HTML Attributes"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "LOCAL",
"baseScore": 4.8,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "LOW",
"subIntegrityImpact": "LOW",
"userInteraction": "PASSIVE",
"valueDensity": "NOT_DEFINED",
"vectorString": "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",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "LOW",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-83",
"description": "CWE-83 Improper Neutralization of Script in Attributes in a Web Page",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-25T04:37:59.837Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "EEF CNA record for CVE-2026-48591",
"tags": [
"related",
"third-party-advisory"
],
"url": "https://cna.erlef.org/cves/CVE-2026-48591.html"
},
{
"name": "OSV record EEF-CVE-2026-48591",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-48591"
},
{
"name": "Introducing commit 8236a05 in pragdave/earmark",
"tags": [
"related"
],
"url": "https://github.com/pragdave/earmark/commit/8236a0570bd894b50e360da08131ec3294c20799"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Stored XSS via unescaped HTML attribute values in earmark",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eMigrate to a maintained Markdown library such as \u003ca href=\"https://hex.pm/packages/mdex\" rel=\"noopener noreferrer\"\u003eMDEx\u003c/a\u003e. The earmark package has been retired on Hex and no patched release will be made.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "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."
}
],
"value": "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."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-48591",
"datePublished": "2026-06-17T16:42:37.508Z",
"dateReserved": "2026-05-22T09:36:56.834Z",
"dateUpdated": "2026-11-25T04:37:59.837Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-48591",
"date": "2026-11-29",
"epss": "0.00197",
"percentile": "0.05373"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:pragdave:earmark:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Earmark.Transform\u0027"
],
"packageName": "earmark",
"packageURL": "pkg:hex/earmark",
"product": "earmark",
"programFiles": [
"lib/earmark/transform.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Earmark.Transform\u0027:_make_att1/2"
},
{
"name": "\u0027Elixir.Earmark.Transform\u0027:make_att/2"
}
],
"repo": "https://github.com/pragdave/earmark",
"vendor": "pragdave",
"versions": [
{
"lessThan": "*",
"status": "affected",
"version": "1.4.1",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:pragdave:earmark:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Earmark.Transform\u0027"
],
"packageName": "pragdave/earmark",
"packageURL": "pkg:github/pragdave/earmark",
"product": "earmark",
"programFiles": [
"lib/earmark/transform.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Earmark.Transform\u0027:_make_att1/2"
},
{
"name": "\u0027Elixir.Earmark.Transform\u0027:make_att/2"
}
],
"repo": "https://github.com/pragdave/earmark",
"vendor": "pragdave",
"versions": [
{
"lessThan": "*",
"status": "affected",
"version": "8236a0570bd894b50e360da08131ec3294c20799",
"versionType": "git"
}
]
}
],
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "Improper Neutralization of Script in Attributes in a Web Page vulnerability in pragdave earmark allows stored cross-site scripting via unescaped HTML attribute values.\n\nEarmark.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 \u0026quot;, 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 \u003ca href=\"http://example.com/?a=x\" onerror=\"alert(1)\"\u003eclick\u003c/a\u003e, executing arbitrary JavaScript in the victim\u0027s browser.\n\nThe 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.\n\nThis issue affects earmark: from 1.4.1 onward."
},
{
"lang": "es",
"value": "Vulnerabilidad de neutralizaci\u00f3n incorrecta de script en atributos en una p\u00e1gina web en pragdave earmark permite cross-site scripting almacenado a trav\u00e9s de valores de atributos HTML sin escapar.\n\n\u2019Elixir.Earmark.Transform\u2019:_make_att1/2 en lib/earmark/transform.ex empalma valores de atributos textualmente entre dos bytes literales \u201c: [\u201d \u201c, name, \u201d=\\\u201c\u201d, value, \u201c\\\u201d\u201c]. Los nodos de texto se enrutan a trav\u00e9s de la funci\u00f3n de escape existente que codifica \u201d como \u201c, pero los valores de los atributos nunca pasan por esa ruta. Un enlace de markdown cuya URL o t\u00edtulo contiene un \u201d desnudo cierra el atributo prematuramente y permite que los bytes restantes sean analizados por el navegador como nuevos atributos HTML. Por ejemplo, [click](http://example.com/?a=x\u201c onerror_disabled=\u201dalert(1)) se renderiza como \u003ca href=\u201chttp://example.com/?a=x\u201d onerror_disabled=\u201calert(1)\u201d\u003eclick[/a], ejecutando JavaScript arbitrario en el navegador de la v\u00edctima.\n\nLa biblioteca earmark ya no se mantiene y ha sido retirada de Hex. Ninguna versi\u00f3n parcheada ser\u00e1 lanzada. Todas las versiones desde la 1.4.1 en adelante est\u00e1n afectadas, y los usuarios deber\u00edan migrar a una biblioteca de Markdown mantenida como MDEx.\n\nEste problema afecta a earmark desde la 1.4.1 en adelante."
}
],
"id": "CVE-2026-48591",
"lastModified": "2026-11-20T09:20:11.200",
"metrics": {
"cvssMetricV40": [
{
"cvssData": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "LOCAL",
"availabilityRequirement": "NOT_DEFINED",
"baseScore": 4.8,
"baseSeverity": "MEDIUM",
"confidentialityRequirement": "NOT_DEFINED",
"exploitMaturity": "NOT_DEFINED",
"integrityRequirement": "NOT_DEFINED",
"modifiedAttackComplexity": "NOT_DEFINED",
"modifiedAttackRequirements": "NOT_DEFINED",
"modifiedAttackVector": "NOT_DEFINED",
"modifiedPrivilegesRequired": "NOT_DEFINED",
"modifiedSubAvailabilityImpact": "NOT_DEFINED",
"modifiedSubConfidentialityImpact": "NOT_DEFINED",
"modifiedSubIntegrityImpact": "NOT_DEFINED",
"modifiedUserInteraction": "NOT_DEFINED",
"modifiedVulnAvailabilityImpact": "NOT_DEFINED",
"modifiedVulnConfidentialityImpact": "NOT_DEFINED",
"modifiedVulnIntegrityImpact": "NOT_DEFINED",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "LOW",
"subIntegrityImpact": "LOW",
"userInteraction": "PASSIVE",
"valueDensity": "NOT_DEFINED",
"vectorString": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "LOW",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"type": "Secondary"
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2026-48591",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-06-17T18:25:40.841347Z",
"version": "2.0.3"
}
}
]
},
"published": "2026-06-17T18:18:04.370",
"references": [
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://cna.erlef.org/cves/CVE-2026-48591.html"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/pragdave/earmark/commit/8236a0570bd894b50e360da08131ec3294c20799"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-48591"
}
],
"sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"vulnStatus": "Deferred",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-83"
}
],
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"type": "Secondary"
}
]
}
},
"vulnrichment": {
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-48591",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-06-17T18:25:40.841347Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-06-17T18:25:50.701Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:pragdave:earmark:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Earmark.Transform\u0027"
],
"packageName": "earmark",
"packageURL": "pkg:hex/earmark",
"product": "earmark",
"programFiles": [
"lib/earmark/transform.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Earmark.Transform\u0027:_make_att1/2"
},
{
"name": "\u0027Elixir.Earmark.Transform\u0027:make_att/2"
}
],
"repo": "https://github.com/pragdave/earmark",
"vendor": "pragdave",
"versions": [
{
"lessThan": "*",
"status": "affected",
"version": "1.4.1",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:pragdave:earmark:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Earmark.Transform\u0027"
],
"packageName": "pragdave/earmark",
"packageURL": "pkg:github/pragdave/earmark",
"product": "earmark",
"programFiles": [
"lib/earmark/transform.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Earmark.Transform\u0027:_make_att1/2"
},
{
"name": "\u0027Elixir.Earmark.Transform\u0027:make_att/2"
}
],
"repo": "https://github.com/pragdave/earmark",
"vendor": "pragdave",
"versions": [
{
"lessThan": "*",
"status": "affected",
"version": "8236a0570bd894b50e360da08131ec3294c20799",
"versionType": "git"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:pragdave:earmark:*:*:*:*:*:*:*:*",
"versionStartIncluding": "1.4.1",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "analyst",
"value": "Jonatan M\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Robert Dober"
}
],
"datePublic": "2026-06-17T16:42:37.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eImproper Neutralization of Script in Attributes in a Web Page vulnerability in pragdave earmark allows stored cross-site scripting via unescaped HTML attribute values.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eEarmark.Transform._make_att1/2\u003c/code\u003e in \u003ccode\u003elib/earmark/transform.ex\u003c/code\u003e splices attribute values verbatim between two literal \u003ccode\u003e\"\u003c/code\u003e bytes: \u003ccode\u003e[\" \", name, \"=\\\"\" , value, \"\\\"\"]\u003c/code\u003e. Text nodes are routed through the existing escape function which encodes \u003ccode\u003e\"\u003c/code\u003e as \u003ccode\u003e\u0026amp;quot;\u003c/code\u003e, but attribute values never visit that path. A markdown link whose URL or title contains a bare \u003ccode\u003e\"\u003c/code\u003e closes the attribute early and lets the trailing bytes be parsed by the browser as fresh HTML attributes. For example, \u003ccode\u003e[click](http://example.com/?a=x\" onerror=\"alert(1))\u003c/code\u003e renders as \u003ccode\u003e\u0026lt;a href=\"http://example.com/?a=x\" onerror=\"alert(1)\"\u0026gt;click\u0026lt;/a\u0026gt;\u003c/code\u003e, executing arbitrary JavaScript in the victim\u0027s browser.\u003c/p\u003e\n\u003cp\u003eThe 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.\u003c/p\u003e\n\u003cp\u003eThis issue affects earmark: from 1.4.1 onward.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Improper Neutralization of Script in Attributes in a Web Page vulnerability in pragdave earmark allows stored cross-site scripting via unescaped HTML attribute values.\n\n`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 `\u0026quot;`, 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 `\u003ca href=\"http://example.com/?a=x\" onerror=\"alert(1)\"\u003eclick\u003c/a\u003e`, executing arbitrary JavaScript in the victim\u0027s browser.\n\nThe 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.\n\nThis issue affects earmark: from 1.4.1 onward."
}
],
"value": "Improper Neutralization of Script in Attributes in a Web Page vulnerability in pragdave earmark allows stored cross-site scripting via unescaped HTML attribute values.\n\nEarmark.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 \u0026quot;, 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 \u003ca href=\"http://example.com/?a=x\" onerror=\"alert(1)\"\u003eclick\u003c/a\u003e, executing arbitrary JavaScript in the victim\u0027s browser.\n\nThe 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.\n\nThis issue affects earmark: from 1.4.1 onward."
}
],
"impacts": [
{
"capecId": "CAPEC-243",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-243 XSS Targeting HTML Attributes"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "LOCAL",
"baseScore": 4.8,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "LOW",
"subIntegrityImpact": "LOW",
"userInteraction": "PASSIVE",
"valueDensity": "NOT_DEFINED",
"vectorString": "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",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "LOW",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-83",
"description": "CWE-83 Improper Neutralization of Script in Attributes in a Web Page",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-25T04:37:59.837Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "EEF CNA record for CVE-2026-48591",
"tags": [
"related",
"third-party-advisory"
],
"url": "https://cna.erlef.org/cves/CVE-2026-48591.html"
},
{
"name": "OSV record EEF-CVE-2026-48591",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-48591"
},
{
"name": "Introducing commit 8236a05 in pragdave/earmark",
"tags": [
"related"
],
"url": "https://github.com/pragdave/earmark/commit/8236a0570bd894b50e360da08131ec3294c20799"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Stored XSS via unescaped HTML attribute values in earmark",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eMigrate to a maintained Markdown library such as \u003ca href=\"https://hex.pm/packages/mdex\" rel=\"noopener noreferrer\"\u003eMDEx\u003c/a\u003e. The earmark package has been retired on Hex and no patched release will be made.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "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."
}
],
"value": "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."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-48591",
"datePublished": "2026-06-17T16:42:37.508Z",
"dateReserved": "2026-05-22T09:36:56.834Z",
"dateUpdated": "2026-11-25T04:37:59.837Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
}
}
Workarounds
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.