CVE-2024-51999: express improperly controls modification of query properties
(updated )
when using the extended query parser in express ('query parser': 'extended'), the request.query object inherits all object prototype properties, but these properties can be overwritten by query string parameter keys that match the property names
[!IMPORTANT] the extended query parser is the default in express 4; this was changed in express 5 which by default uses the simple query parser
References
- github.com/advisories/GHSA-pj86-cfqh-vqx6
- github.com/expressjs/express
- github.com/expressjs/express/commit/2f64f68c37c64ae333e41ff38032d21860f22255
- github.com/expressjs/express/releases/tag/4.22.0
- github.com/expressjs/express/releases/tag/v5.2.0
- github.com/expressjs/express/security/advisories/GHSA-pj86-cfqh-vqx6
- nvd.nist.gov/vuln/detail/CVE-2024-51999
Code Behaviors & Features
Detect and mitigate CVE-2024-51999 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →