{"answers":{"affected":"2 open source packages ship an affected version, including express. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-10491 exists.","fix":"Upgrade express to 4.0.0-rc1 or later.","what":"CVE-2024-10491 is a medium-severity vulnerability in express, published on 29 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-10491 and fix it if it is affected.\n\nWhat it is: CVE-2024-10491 is a medium-severity vulnerability in express, published on 29 Oct 2024. 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-2024-10491 exists.\n\nAffected packages and fixed versions:\n- express (npm): affected all versions; fixed in 4.0.0-rc1\n- express (npm): affected all versions; fixed in 4.0.0-rc1\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-10491/ (Markdown: https://insights.sbomify.com/CVE-2024-10491/index.md)","id":"CVE-2024-10491","markdown":"https://insights.sbomify.com/CVE-2024-10491/index.md","name":"CVE-2024-10491","record":{"aliases":["DEBIAN-CVE-2024-10491","GHSA-cm5g-3pgc-8rg4"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Express web framework","requires_auth":"none","summary":"Attackers can inject malicious resources via unsanitized Link headers in Express, potentially leading to code execution or security bypasses.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"HeroDevs","cpe":[{"product":"express","vendor":"openjsf"}],"cvss":{"score":4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"A vulnerability has been identified in the Express response.links function, allowing for arbitrary resource injection in the Link header when unsanitized data is used.\n\nThe issue arises from improper sanitization in `Link` header values, which can allow a combination of characters like `,`, `;`, and `\u003c\u003e` to preload malicious resources.\n\nThis vulnerability is especially relevant for dynamic parameters.","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":"Preload arbitrary resources by injecting additional `Link` headers","id":"CVE-2024-10491","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"other","year":"2024"},"n_packages":2,"n_references":1,"next":{"headline":"Keycloak-quarkus-server: keycloak path trasversal","id":"CVE-2024-10492"},"packages":[{"ecosystem":"npm","fixed":["4.0.0-rc1"],"introduced":["0"],"last_affected":[],"package":"express","purl":null,"source":"GHSA-cm5g-3pgc-8rg4"},{"ecosystem":"npm","fixed":["4.0.0-rc1"],"introduced":["0"],"last_affected":[],"package":"express","purl":"pkg:npm/express","source":"GHSA-cm5g-3pgc-8rg4"}],"prev":{"headline":"Authentication bypass flaw in several mapp components","id":"CVE-2024-10490"},"products":["express"],"published":"2024-10-29","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":5,"headline":"express vulnerable to XSS via response.redirect()","id":"CVE-2024-43796","kev_date_added":null,"published":"2024-09-10"}],"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":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-29","vendors":["express"]},"summary":"Attackers can inject malicious resources via unsanitized Link headers in Express, potentially leading to code execution or security bypasses.","url":"https://insights.sbomify.com/CVE-2024-10491/"}