{"answers":{"affected":"2 open source packages ship an affected version, including deno_doc.","exploited":"There is no known exploitation of CVE-2024-32468 in the wild and no public exploit code.","fix":"Upgrade deno_doc to 0.119.0 or later.","what":"CVE-2024-32468 is a medium-severity cross-site scripting vulnerability in denoland deno, published on 25 Nov 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-32468 and fix it if it is affected.\n\nWhat it is: CVE-2024-32468 is a medium-severity cross-site scripting vulnerability in denoland deno, published on 25 Nov 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-32468 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- deno_doc (crates.io): affected all versions; fixed in 0.119.0\n- deno_doc (crates.io): affected all versions; fixed in 0.119.0\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-2024-32468/ (Markdown: https://insights.sbomify.com/CVE-2024-32468/index.md)","id":"CVE-2024-32468","markdown":"https://insights.sbomify.com/CVE-2024-32468/index.md","name":"CVE-2024-32468","record":{"aliases":["GHSA-qqwr-j9mm-fhw6"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Deno documentation generator","requires_auth":"low_privilege","summary":"Cross-site scripting in deno_doc allows code execution when generating HTML documentation from malicious input.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Deno is a runtime for JavaScript and TypeScript written in rust. Several cross-site scripting vulnerabilities existed in the `deno_doc` crate which lead to Self-XSS with deno doc --html. 1.) XSS in generated `search_index.js`, `deno_doc` outputs a JavaScript file for searching. However, the generated file used `innerHTML` on unsanitzed HTML input. 2.) XSS via property, method and enum names, `deno_doc` did not sanitize property names, method names and enum names. The first XSS most likely didn't have an impact since `deno doc --html` is expected to be used locally with own packages.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Improper neutralization of input during web page generation (\"Cross-site Scripting\") in deno_doc HTML generator","id":"CVE-2024-32468","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":2,"n_references":2,"next":{"headline":"Decidim has cross-site scripting (XSS) in the pagination","id":"CVE-2024-32469"},"packages":[{"ecosystem":"crates.io","fixed":["0.119.0"],"introduced":["0"],"last_affected":[],"package":"deno_doc","purl":null,"source":"GHSA-qqwr-j9mm-fhw6"},{"ecosystem":"crates.io","fixed":["0.119.0"],"introduced":["0"],"last_affected":[],"package":"deno_doc","purl":"pkg:cargo/deno_doc","source":"GHSA-qqwr-j9mm-fhw6"}],"prev":{"headline":"Meteraphsere vulnerable to unauthorized viewing by workspace members","id":"CVE-2024-32467"},"products":["deno"],"published":"2024-11-25","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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-11-25","vendors":["denoland"]},"summary":"Cross-site scripting in deno_doc allows code execution when generating HTML documentation from malicious input.","url":"https://insights.sbomify.com/CVE-2024-32468/"}