{"answers":{"affected":"3 open source packages ship an affected version, including earmark.","exploited":"There is no known exploitation of CVE-2026-48591 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-48591 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-48591 is a medium-severity cross-site scripting vulnerability in pragdave earmark, published on 17 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-48591 and fix it if it is affected.\n\nWhat it is: CVE-2026-48591 is a medium-severity cross-site scripting vulnerability in pragdave earmark, published on 17 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-48591 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- earmark (Hex): affected from 1.4.1; no fix listed\n- earmark (Hex): affected from 1.4.1 up to 1.5.0-pre1; no fix listed\n- earmark (Hex): affected from 1.4.1 up to 1.5.0-pre1; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-48591/ (Markdown: https://insights.sbomify.com/CVE-2026-48591/index.md)","id":"CVE-2026-48591","markdown":"https://insights.sbomify.com/CVE-2026-48591/index.md","name":"CVE-2026-48591","record":{"aliases":["EEF-CVE-2026-48591","GHSA-52mm-h59v-f3c7"],"analysis":{"component_type":"library","fix_type":"end_of_life","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Elixir Markdown library","requires_auth":"none","summary":"Stored XSS in earmark allows attackers to execute arbitrary JavaScript via unescaped HTML attributes in Markdown links.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"EEF","cpe":[],"cvss":{"score":4.8,"severity":"medium","source":"cna","vector":"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"},"cwes":[{"id":"CWE-83","name":"Improper Neutralization of Script in Attributes in a Web Page"}],"description":"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'Elixir.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's 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.","ecosystems":["Hex"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Stored XSS via unescaped HTML attribute values in earmark","id":"CVE-2026-48591","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Hex","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"Missing authorization check on save-job event handler in oban_web","id":"CVE-2026-48592"},"packages":[{"ecosystem":"Hex","fixed":[],"introduced":["1.4.1"],"last_affected":[],"package":"earmark","purl":"pkg:hex/earmark","source":"EEF-CVE-2026-48591"},{"ecosystem":"Hex","fixed":[],"introduced":["1.4.1"],"last_affected":["1.5.0-pre1"],"package":"earmark","purl":null,"source":"GHSA-52mm-h59v-f3c7"},{"ecosystem":"Hex","fixed":[],"introduced":["1.4.1"],"last_affected":["1.5.0-pre1"],"package":"earmark","purl":"pkg:hex/earmark","source":"GHSA-52mm-h59v-f3c7"}],"prev":{"headline":"Element and Attribute Names Injected Verbatim into XML Output in xml_builder","id":"CVE-2026-48590"},"products":["earmark"],"published":"2026-06-17","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Erlang Ecosystem Foundation","prefix":"EEF"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-18","vendors":["pragdave"]},"summary":"Stored XSS in earmark allows attackers to execute arbitrary JavaScript via unescaped HTML attributes in Markdown links.","url":"https://insights.sbomify.com/CVE-2026-48591/"}