#11380·react-admin

Fix decode-uri-component DoS (CVE-2026-45822) by dropping query-string

Author: ghost91-Created Sep 22, 2026Updated Sep 27, 2026

Is your feature request related to a problem? Please describe.

ra-core depends on query-string@^7.1.3, which pulls [email protected], affected by GHSA-vcc3-ghjq-m6fr / CVE-2026-45822 (moderate DoS via malformed percent-encoded input, reachable through URL query parsing). The only patched release is 0.5.0.

Describe the solution you'd like

Remove query-string and replace its internal uses (stringify in fetch.ts, parse in useListParams / useRecordFromLocation) with a small native URLSearchParams-based helper. This drops decode-uri-component (and filter-obj, split-on-first, strict-uri-encode) from the install tree with no ESM/CJS problems, and default output stays byte-for-byte identical.

Describe alternatives you've considered

  • Bump query-string to 9.5.x: the only releases depending on patched decode-uri-component@^0.5.0, but query-string 8+ is ESM-only (type: module), while ra-core ships a CJS build (require → dist/index.cjs does require("query-string")). Breaking for CJS/Node/Jest consumers.
  • Override just decode-uri-component: wouldn't help consumers either. resolutions/overrides only apply to the project that declares them, so an entry in react-admin's repo would fix its own install but consumers would still resolve the vulnerable version. And it doesn't work mechanically anyway, since the patched version is ESM-only and can't be required by query-string@7.

Additional context

The native replacement would drop the optional, undocumented StringifyOptions second argument of fetchUtils.queryParameters (currently an alias for query-string's stringify). It isn't used with options anywhere in the repo and isn't documented, but it is technically a public API change.

Would you accept that as part of this security fix in a minor/patch release, or would you prefer to hold it for a major? Happy to open the PR either way.