{"answers":{"affected":"2 open source packages ship an affected version, including md-fileserver. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-46492 exists.","fix":"Upgrade md-fileserver to 1.10.3 or later.","what":"CVE-2026-46492 is a high-severity cross-site scripting vulnerability in commenthol md-fileserver, published on 9 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-46492 and fix it if it is affected.\n\nWhat it is: CVE-2026-46492 is a high-severity cross-site scripting vulnerability in commenthol md-fileserver, published on 9 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-46492 exists.\n\nAffected packages and fixed versions:\n- md-fileserver (npm): affected all versions; fixed in 1.10.3\n- md-fileserver (npm): affected all versions; fixed in 1.10.3\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-46492/ (Markdown: https://insights.sbomify.com/CVE-2026-46492/index.md)","id":"CVE-2026-46492","markdown":"https://insights.sbomify.com/CVE-2026-46492/index.md","name":"CVE-2026-46492","record":{"aliases":["GHSA-32q2-hhr5-6qvv"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Markdown file server","requires_auth":"none","summary":"An attacker can execute arbitrary JavaScript in the victim's browser by crafting malicious Markdown files with raw HTML tags.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"md-fileserver","vendor":"commenthol"}],"cvss":{"score":7.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-87","name":"Improper Neutralization of Alternate XSS Syntax"},{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"}],"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 \u003cscript\u003e 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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"md-fileserver: Stored/Reflected XSS when viewing Markdown (raw HTML allowed)","id":"CVE-2026-46492","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"haxtheweb/haxcms-php uses insecure method for generating salt","id":"CVE-2026-46493"},"packages":[{"ecosystem":"npm","fixed":["1.10.3"],"introduced":["0"],"last_affected":[],"package":"md-fileserver","purl":null,"source":"GHSA-32q2-hhr5-6qvv"},{"ecosystem":"npm","fixed":["1.10.3"],"introduced":["0"],"last_affected":[],"package":"md-fileserver","purl":"pkg:npm/md-fileserver","source":"GHSA-32q2-hhr5-6qvv"}],"prev":{"headline":"SimpleSAMLphp casserver FileSystemTicketStore path traversal allows out-of-ticket-directory read/unserialize and conditional deletion","id":"CVE-2026-46491"},"products":["md-fileserver"],"published":"2026-06-09","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-09","vendors":["commenthol"]},"summary":"An attacker can execute arbitrary JavaScript in the victim's browser by crafting malicious Markdown files with raw HTML tags.","url":"https://insights.sbomify.com/CVE-2026-46492/"}