Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. express
  4. ›
  5. CVE-2024-51999

CVE-2024-51999: express improperly controls modification of query properties

December 1, 2025 (updated December 2, 2025)

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 →

Affected versions

All versions before 4.22.0, all versions starting from 5.0.0 before 5.2.0

Fixed versions

  • 4.22.0
  • 5.2.0

Solution

Upgrade to versions 4.22.0, 5.2.0 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes

Source file

npm/express/CVE-2024-51999.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 08 Dec 2025 12:19:21 +0000.