{"answers":{"affected":"2 open source packages ship an affected version, including @nuxtjs/mdc.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-24981 exists.","fix":"Upgrade @nuxtjs/mdc to 0.13.3 or later.","what":"CVE-2025-24981 is a critical cross-site scripting vulnerability in nuxt-modules mdc, published on 6 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-24981 and fix it if it is affected.\n\nWhat it is: CVE-2025-24981 is a critical cross-site scripting vulnerability in nuxt-modules mdc, published on 6 Feb 2025. 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-2025-24981 exists.\n\nAffected packages and fixed versions:\n- @nuxtjs/mdc (npm): affected all versions; fixed in 0.13.3\n- @nuxtjs/mdc (npm): affected all versions; fixed in 0.13.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-2025-24981/ (Markdown: https://insights.sbomify.com/CVE-2025-24981/index.md)","id":"CVE-2025-24981","markdown":"https://insights.sbomify.com/CVE-2025-24981/index.md","name":"CVE-2025-24981","record":{"aliases":["GHSA-j82m-pc2v-2484"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Nuxt MDC library","requires_auth":"none","summary":"Attackers can execute arbitrary JavaScript via crafted Markdown anchor links bypassing protocol filters, affecting Nuxt applications using the MDC library.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.3,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"MDC is a tool to take regular Markdown and write documents interacting deeply with a Vue component. In affected versions unsafe parsing logic of the URL from markdown can lead to arbitrary JavaScript code due to a bypass to the existing guards around the `javascript:` protocol scheme in the URL. The parsing logic implement in `props.ts` maintains a deny-list approach to filtering potential malicious payload. It does so by matching protocol schemes like `javascript:` and others. These security guards can be bypassed by an adversarial that provides JavaScript URLs with HTML entities encoded via hex string. Users who consume this library and perform markdown parsing from unvalidated sources could result in rendering vulnerable XSS anchor links. This vulnerability has been addressed in version 0.13.3 and all users are advised to upgrade. There are no known workarounds for this vulnerability.","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":"Parsed HTML anchor links in Markdown provided to parseMarkdown can result in XSS in @nuxtjs/mdc","id":"CVE-2025-24981","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2025"},"n_packages":2,"n_references":3,"next":{"headline":"Cross-site request forgery in Activity Log WinterLock","id":"CVE-2025-24982"},"packages":[{"ecosystem":"npm","fixed":["0.13.3"],"introduced":["0"],"last_affected":[],"package":"@nuxtjs/mdc","purl":null,"source":"GHSA-j82m-pc2v-2484"},{"ecosystem":"npm","fixed":["0.13.3"],"introduced":["0"],"last_affected":[],"package":"@nuxtjs/mdc","purl":"pkg:npm/%40nuxtjs/mdc","source":"GHSA-j82m-pc2v-2484"}],"prev":{"headline":"Pimcore Admin Classic Bundle allows user enumeration","id":"CVE-2025-24980"},"products":["mdc"],"published":"2025-02-06","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":"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":"2025-02-12","vendors":["nuxt-modules"]},"summary":"Attackers can execute arbitrary JavaScript via crafted Markdown anchor links bypassing protocol filters, affecting Nuxt applications using the MDC library.","url":"https://insights.sbomify.com/CVE-2025-24981/"}