{"answers":{"affected":"4 open source packages ship an affected version, including serve-static. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-43800 in the wild and no public exploit code.","fix":"Upgrade serve-static to a fixed version for your release line: 1.16.0 or 2.1.0.","what":"CVE-2024-43800 is a medium-severity cross-site scripting vulnerability in expressjs serve-static, published on 10 Sep 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-43800 and fix it if it is affected.\n\nWhat it is: CVE-2024-43800 is a medium-severity cross-site scripting vulnerability in expressjs serve-static, published on 10 Sep 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-43800 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- serve-static (npm): affected all versions; fixed in 1.16.0\n- serve-static (npm): affected all versions; fixed in 1.16.0\n- serve-static (npm): affected from 2.0.0; fixed in 2.1.0\n- serve-static (npm): affected from 2.0.0; fixed in 2.1.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-43800/ (Markdown: https://insights.sbomify.com/CVE-2024-43800/index.md)","id":"CVE-2024-43800","markdown":"https://insights.sbomify.com/CVE-2024-43800/index.md","name":"CVE-2024-43800","record":{"aliases":["AZL-49094","AZL-49147","AZL-49155","CLSA-2026-1784856192","CLSA-2026-1792490203","DEBIAN-CVE-2024-43800","GHSA-cm22-4g7w-348p","MINI-59gg-4g97-5686","ROOT-APP-NPM-CVE-2024-43800","UBUNTU-CVE-2024-43800"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js static file server","requires_auth":"none","summary":"An attacker can execute untrusted code via template injection in serve-static, potentially leading to XSS, affecting Node.js applications using this library.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"serve-static","vendor":"openjsf"}],"cvss":{"score":5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"serve-static serves static files. serve-static passes untrusted user input - even after sanitizing it - to redirect() may execute untrusted code. This issue is patched in serve-static 1.16.0.","ecosystems":["npm"],"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":"serve-static affected by template injection that can lead to XSS","id":"CVE-2024-43800","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":4,"n_references":3,"next":{"headline":"Privilege escalation to admin from a low-privileged user via SVG upload in Jellyfin","id":"CVE-2024-43801"},"packages":[{"ecosystem":"npm","fixed":["1.16.0"],"introduced":["0"],"last_affected":[],"package":"serve-static","purl":null,"source":"GHSA-cm22-4g7w-348p"},{"ecosystem":"npm","fixed":["1.16.0"],"introduced":["0"],"last_affected":[],"package":"serve-static","purl":"pkg:npm/serve-static","source":"GHSA-cm22-4g7w-348p"},{"ecosystem":"npm","fixed":["2.1.0"],"introduced":["2.0.0"],"last_affected":[],"package":"serve-static","purl":null,"source":"GHSA-cm22-4g7w-348p"},{"ecosystem":"npm","fixed":["2.1.0"],"introduced":["2.0.0"],"last_affected":[],"package":"serve-static","purl":"pkg:npm/serve-static","source":"GHSA-cm22-4g7w-348p"}],"prev":{"headline":"send vulnerable to template injection that can lead to XSS","id":"CVE-2024-43799"},"products":["serve-static"],"published":"2024-09-10","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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-10","vendors":["expressjs"]},"summary":"An attacker can execute untrusted code via template injection in serve-static, potentially leading to XSS, affecting Node.js applications using this library.","url":"https://insights.sbomify.com/CVE-2024-43800/"}