Open-source package vulnerability · npm
CVE-2024-29409: nest allows a remote attacker to execute arbitrary code via the Content-Type header
mediumCVSS 3.1 5.5GHSA-cj7v-w2c7-cp7c
File Upload vulnerability in nestjs nest prior to v.11.0.16 allows a remote attacker to execute arbitrary code via the Content-Type header.
Published Mar 14, 2025 · Updated Apr 14, 2025
Affected packages
@nestjs/common
- Ecosystem
- npm
- Affected
- >= 11.0.0-next.1, < 11.0.16
- Fixed in
- 11.0.16
- Check
npm ls @nestjs/common
@nestjs/common
- Ecosystem
- npm
- Affected
- < 10.4.16
- Fixed in
- 10.4.16
- Check
npm ls @nestjs/common
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
File Upload vulnerability in nestjs nest prior to v.11.0.16 allows a remote attacker to execute arbitrary code via the Content-Type header.
Credited to aydinnyunus, axi92, fperalta-INTIVE.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-29409
- https://github.com/nestjs/nest/issues/13311#issuecomment-1993839495
- https://gist.github.com/aydinnyunus/801342361584d1491c67a820a714f53f
- https://github.com/nestjs/nest/blob/83a48b2c7396985144b7a6cd5d3bee1abb7c5d81/packages/common/pipes/file/file-type.validator.ts#L19
- https://github.com/nestjs/nest/issues/14876
- https://github.com/nestjs/nest/issues/14876#issuecomment-2796888038
- https://github.com/nestjs/nest/pull/14881
- https://github.com/nestjs/nest/releases/tag/v11.0.16
- https://github.com/nestjs/nest/releases/tag/v10.4.16
- https://github.com/advisories/GHSA-cj7v-w2c7-cp7c
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
