You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"qs": "~6.15.1"That tilde range only resolves to qs >=6.15.1 <6.16.0 — it structurally excludes 6.16.0, which is the fix version for the qs vulnerabilities referenced above. So even running npm update / npm audit fix against [email protected] cannot pull in a patched qs; the range itself blocks it.[email protected] (used by [email protected]) already declares a wider "qs": "^6.15.2", which does allow 6.16.0.I've filed the range-widening request against body-parser directly: https://github.com/expressjs/body-parser/issues/765Once that's addressed there, [email protected] would also need to bump its body-parser dependency range to pick up the fixed release. Until both land, the only way to get a patched qs on [email protected] is a manual overrides/resolutions entry in the consuming project's package.json, which bypasses body-parser's own declared compatibility range.
Hi @samarth444! Thanks for reporting this. I’d like to take on this task.
Judging by package.json, the qs package version is pinned to ^6.14.0, which causes npm install to install the vulnerable version 6.15.2. Both vulnerabilities (CVEs) are fixed in qs version 6.16.0, so updating the minimum version to ^6.16.0 and updating package-lock.json should resolve the issue.
It is worth noting that pull request #7305 is already open; it bumps the qs version, but only to 6.15.2—a version that remains vulnerable to both CVEs mentioned here—so that PR alone won't resolve the issue.
Follow-up to my comment above — thanks @cj-sadrul-nashid for digging into this, that's an important catch.
Since #7440 already covers widening express's own qs range, opening another PR for that here would just duplicate it. The remaining gap is on the body-parser side (expressjs/body-parser#765), which is what actually blocks a patched qs from reaching req.body. I'll redirect my contribution there instead and open a PR against body-parser bumping qs from ~6.15.1 to ~6.16.0, then come back here once that's landed to help bump express's body-parser range in a follow-up PR.
Follow-up to my comment above — thanks @cj-sadrul-nashid for digging into this, that's an important catch.
Since #7440 already covers widening express's own qs range, opening another PR for that here would just duplicate it. The remaining gap is on the body-parser side (expressjs/body-parser#765), which is what actually blocks a patched qs from reaching req.body. I'll redirect my contribution there instead and open a PR against body-parser bumping qs from ~6.15.1 to ~6.16.0, then come back here once that's landed to help bump express's body-parser range in a follow-up PR.
@MarkushaRaz body-parser has updated to 1.20.8 and with it the version of qs
While you're waiting on Express to bump its pin: npm overrides (or pnpm/yarn resolutions) let you force a patched qs version without forking anything - "overrides": { "qs": "^6.x.x-patched" } in package.json. Just double check whatever qs version you pin is actually compatible with Express's usage (extended query parsing), it's an internal dependency, not something your own code calls directly, so mismatches would show up as parsing bugs, not type errors.
Activity
cj-sadrul-nashid commentedon Sep 7, 2026
This is confirmed to be a
body-parser-level pinning issue, not just a matter of qs having a vulnerable version.[email protected]depends onbody-parser@~1.20.5, and[email protected](the current latest 1.x) declares:MarkushaRaz commentedon Sep 8, 2026
Hi @samarth444! Thanks for reporting this. I’d like to take on this task.
Judging by
package.json, theqspackage version is pinned to^6.14.0, which causesnpm installto install the vulnerable version 6.15.2. Both vulnerabilities (CVEs) are fixed inqsversion 6.16.0, so updating the minimum version to^6.16.0and updatingpackage-lock.jsonshould resolve the issue.It is worth noting that pull request #7305 is already open; it bumps the
qsversion, but only to 6.15.2—a version that remains vulnerable to both CVEs mentioned here—so that PR alone won't resolve the issue.I will create a pull request shortly.
MarkushaRaz commentedon Sep 8, 2026
Follow-up to my comment above — thanks @cj-sadrul-nashid for digging into this, that's an important catch.
Since #7440 already covers widening express's own
qsrange, opening another PR for that here would just duplicate it. The remaining gap is on the body-parser side (expressjs/body-parser#765), which is what actually blocks a patchedqsfrom reachingreq.body. I'll redirect my contribution there instead and open a PR against body-parser bumpingqsfrom~6.15.1to~6.16.0, then come back here once that's landed to help bump express'sbody-parserrange in a follow-up PR.qwilr-altonius commentedon Sep 8, 2026
@MarkushaRaz body-parser has updated to 1.20.8 and with it the version of
qsusualdesigner commentedon Sep 12, 2026
While you're waiting on Express to bump its pin: npm overrides (or pnpm/yarn resolutions) let you force a patched qs version without forking anything - "overrides": { "qs": "^6.x.x-patched" } in package.json. Just double check whatever qs version you pin is actually compatible with Express's usage (extended query parsing), it's an internal dependency, not something your own code calls directly, so mismatches would show up as parsing bugs, not type errors.
Gengar-i commentedon Oct 5, 2026
Fixed with 4.22.3! 🥳