{"id":"GHSA-pj86-cfqh-vqx6","revision":"f1d70cb8f7f94de78863b59e70a9ac9a","records":[{"revision":"f1d70cb8f7f94de78863b59e70a9ac9a","observedAt":"2026-11-17T07:26:19.053+00:00","statement":{"source":"osv","id":"GHSA-pj86-cfqh-vqx6","aliases":[],"title":"Withdrawn Advisory: express improperly controls modification of query properties","description":"## Withdrawn Advisory\nThis advisory has been withdrawn because it describes a correctness bug, not a vulnerability with real security impact. This link is maintained to preserve external references.\n\n## Original Description\n### Impact\n\nwhen 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\n\n> [!IMPORTANT]  \n> the extended query parser is the default in express 4; this was changed in express 5 which by default uses the simple query parser\n\n### Patches\n\nthe issue has been patched to ensure `request.query` is a plain object so `request.query` no longer has object prototype properties. this brings the default behavior of extended query parsing in line with express's default simple query parser\n\n### Workaround\n\nthis only impacts users using extended query parsing (`'query parser': 'extended'`), which is the default in express 4, but not express 5.  all users are encouraged to upgrade to the patched versions, but can otherwise work around this issue:\n\n#### provide `qs` directly and specify `plainObjects: true`\n\n```js\napp.set('query parser',\n  function (str) {\n    return qs.parse(str, {\n      plainObjects: true\n  });\n});\n```","state":2,"publishedAt":"2025-12-01T18:59:17+00:00","modifiedAt":"2026-11-17T07:11:36.4328295+00:00","affected":[{"ecosystem":"npm","name":"express","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"4.22.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"express","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"5.0.0"},{"kind":"fixed","version":"5.2.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/expressjs/express/security/advisories/GHSA-pj86-cfqh-vqx6","https://nvd.nist.gov/vuln/detail/CVE-2024-51999","https://github.com/expressjs/express/commit/2f64f68c37c64ae333e41ff38032d21860f22255","https://github.com/expressjs/express","https://github.com/expressjs/express/releases/tag/4.22.0","https://github.com/expressjs/express/releases/tag/v5.2.0"],"sourceUrl":"https://github.com/advisories/GHSA-pj86-cfqh-vqx6","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-pj86-cfqh-vqx6","identifiers":["GHSA-pj86-cfqh-vqx6"]},"retained":false,"historicalAffected":[]}],"coverage":[]}