{"answers":{"affected":"4 open source packages ship an affected version, including express. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-43796 in the wild and no public exploit code.","fix":"Upgrade express to a fixed version for your release line: 4.20.0 or 5.0.0.","what":"CVE-2024-43796 is a medium-severity vulnerability in expressjs express, published on 10 Sep 2024."},"fix_prompt":"Check this codebase for CVE-2024-43796 and fix it if it is affected.\n\nWhat it is: CVE-2024-43796 is a medium-severity vulnerability in expressjs express, published on 10 Sep 2024. \nExploitation: There is no known exploitation of CVE-2024-43796 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- express (npm): affected all versions; fixed in 4.20.0\n- express (npm): affected all versions; fixed in 4.20.0\n- express (npm): affected from 5.0.0-alpha.1; fixed in 5.0.0\n- express (npm): affected from 5.0.0-alpha.1; fixed in 5.0.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-43796/ (Markdown: https://insights.sbomify.com/CVE-2024-43796/index.md)","id":"CVE-2024-43796","markdown":"https://insights.sbomify.com/CVE-2024-43796/index.md","name":"CVE-2024-43796","record":{"aliases":["AZL-49053","AZL-49091","AZL-49135","AZL-49152","CLSA-2026-1781484857","CLSA-2026-1792491907","DEBIAN-CVE-2024-43796","GHSA-qw6h-vgh9-j6wx","MINI-7825-7wg3-px23","ROOT-APP-NPM-CVE-2024-43796","UBUNTU-CVE-2024-43796"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"express","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":"Express.js minimalist web framework for node. In express \u003c 4.20.0, passing untrusted user input - even after sanitizing it - to response.redirect() may execute untrusted code. This issue is patched in express 4.20.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":"express vulnerable to XSS via response.redirect()","id":"CVE-2024-43796","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2024"},"n_packages":4,"n_references":2,"next":{"headline":"Path Traversal in audiobookshelf","id":"CVE-2024-43797"},"packages":[{"ecosystem":"npm","fixed":["4.20.0"],"introduced":["0"],"last_affected":[],"package":"express","purl":null,"source":"GHSA-qw6h-vgh9-j6wx"},{"ecosystem":"npm","fixed":["4.20.0"],"introduced":["0"],"last_affected":[],"package":"express","purl":"pkg:npm/express","source":"GHSA-qw6h-vgh9-j6wx"},{"ecosystem":"npm","fixed":["5.0.0"],"introduced":["5.0.0-alpha.1"],"last_affected":[],"package":"express","purl":null,"source":"GHSA-qw6h-vgh9-j6wx"},{"ecosystem":"npm","fixed":["5.0.0"],"introduced":["5.0.0-alpha.1"],"last_affected":[],"package":"express","purl":"pkg:npm/express","source":"GHSA-qw6h-vgh9-j6wx"}],"prev":{"headline":"OpenC3 COSMOS vulnerable to cross-site scripting in Login functionality (`GHSL-2024-128`)","id":"CVE-2024-43795"},"products":["express"],"published":"2024-09-10","related":[{"cvss_score":6.1,"headline":"Express.js Open Redirect in malformed URLs","id":"CVE-2024-29041","kev_date_added":null,"published":"2024-03-25"},{"cvss_score":6.1,"headline":"No Charset in Content-Type Header in express","id":"CVE-2014-6393","kev_date_added":null,"published":"2017-08-09"},{"cvss_score":4,"headline":"Preload arbitrary resources by injecting additional `Link` headers","id":"CVE-2024-10491","kev_date_added":null,"published":"2024-10-29"}],"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":null,"url":"https://insights.sbomify.com/CVE-2024-43796/"}