{"answers":{"affected":"4 open source packages ship an affected version, including @nestjs/common. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29409 exists.","fix":"Upgrade @nestjs/common to a fixed version for your release line: 10.4.16 or 11.0.16.","what":"CVE-2024-29409 is a medium-severity vulnerability in n/a, published on 14 Mar 2025. 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-29409 and fix it if it is affected.\n\nWhat it is: CVE-2024-29409 is a medium-severity vulnerability in n/a, published on 14 Mar 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29409 exists.\n\nAffected packages and fixed versions:\n- @nestjs/common (npm): affected all versions; fixed in 10.4.16\n- @nestjs/common (npm): affected all versions; fixed in 10.4.16\n- @nestjs/common (npm): affected from 11.0.0-next.1; fixed in 11.0.16\n- @nestjs/common (npm): affected from 11.0.0-next.1; fixed in 11.0.16\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-29409/ (Markdown: https://insights.sbomify.com/CVE-2024-29409/index.md)","id":"CVE-2024-29409","markdown":"https://insights.sbomify.com/CVE-2024-29409/index.md","name":"CVE-2024-29409","record":{"aliases":["GHSA-cj7v-w2c7-cp7c","ROOT-APP-NPM-CVE-2024-29409"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"NestJS framework","requires_auth":"low_privilege","summary":"Remote attackers can execute arbitrary code via the Content-Type header in the NestJS framework.","user_interaction":"required","vuln_class":"file_upload"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"nest","vendor":"nestjs"}],"cvss":{"score":5.5,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"File Upload vulnerability in nestjs nest v.10.3.2 allows a remote attacker to execute arbitrary code via the Content-Type header.","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":"nest allows a remote attacker to execute arbitrary code via the Content-Type header","id":"CVE-2024-29409","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"file_upload","year":"2024"},"n_packages":4,"n_references":2,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2024-29413"},"packages":[{"ecosystem":"npm","fixed":["10.4.16"],"introduced":["0"],"last_affected":[],"package":"@nestjs/common","purl":null,"source":"GHSA-cj7v-w2c7-cp7c"},{"ecosystem":"npm","fixed":["10.4.16"],"introduced":["0"],"last_affected":[],"package":"@nestjs/common","purl":"pkg:npm/%40nestjs/common","source":"GHSA-cj7v-w2c7-cp7c"},{"ecosystem":"npm","fixed":["11.0.16"],"introduced":["11.0.0-next.1"],"last_affected":[],"package":"@nestjs/common","purl":null,"source":"GHSA-cj7v-w2c7-cp7c"},{"ecosystem":"npm","fixed":["11.0.16"],"introduced":["11.0.0-next.1"],"last_affected":[],"package":"@nestjs/common","purl":"pkg:npm/%40nestjs/common","source":"GHSA-cj7v-w2c7-cp7c"}],"prev":{"headline":"Command injection in n/a","id":"CVE-2024-29404"},"products":["n/a"],"published":"2025-03-14","related":[{"cvss_score":8.7,"headline":"Nest Fastify HEAD Request Middleware Bypass","id":"CVE-2026-33011","kev_date_added":null,"published":"2026-03-20"},{"cvss_score":8.2,"headline":"NestJS 11.1.13 - Lack of data validation allowing authentication/authorization bypass","id":"CVE-2026-2293","kev_date_added":null,"published":"2026-02-27"},{"cvss_score":7.5,"headline":"Nest: DoS via Recursive handleData in JsonSocket (TCP Transport)","id":"CVE-2026-40879","kev_date_added":null,"published":"2026-04-21"},{"cvss_score":6.9,"headline":"Nest has a Fastify URL Encoding Middleware Bypass (TOCTOU)","id":"CVE-2025-69211","kev_date_added":null,"published":"2025-12-29"},{"cvss_score":6.3,"headline":"@nestjs/core Improperly Neutralizes Special Elements in Output Used by a Downstream Component ('Injection')","id":"CVE-2026-35515","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":3.7,"headline":"@nestjs/core vulnerable to Information Exposure via StreamableFile pipe","id":"CVE-2023-26108","kev_date_added":null,"published":"2023-03-06"}],"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":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-03-17","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code via the Content-Type header in the NestJS framework.","url":"https://insights.sbomify.com/CVE-2024-29409/"}