Medusa v2.22.5stable Released Nov 09, 2026
Impact Score: 4/10

Medusa: v2.22.5: Security Hardening for Unsafe Parameters

Source available - automated, not human-reviewed

Component: medusajs · Channel: stable. Automated analysis, not a compatibility certification. How this works.

Analysis updated: 2026-11-15.

Compatibility not verified - check source notes
📄 .MD
⚡ Executive Summary (TL;DR)

This release hardens query parameter validation by returning 400 errors for malformed keys and skipping/rejecting unexpected path segments in dotted fields, filter, and order parameters. The release is deprecated due to missing package files, requiring an immediate upgrade to v2.22.6 which contains the same security fixes.

Who Does This Impact? (Role-Based Analysis)

💻 Software Engineers & Devs

Self-hosted projects must update to v2.22.6 to apply the security hardening for query parameter validation in fields/filter/order parameters.

📊 Product & Engineering Leads

Users on Medusa Cloud are unaffected, while self-hosted deployments should prioritize upgrading to address the security improvements.

⚙️ DevOps & Security

Self-hosted environments need to upgrade from the deprecated v2.22.5 to v2.22.6 as the packages are missing files, and patch ZIPs are available for older versions (2.15.3-2.22.4).

❓ Frequently Asked Questions

Does Medusa v2.22.5 contain breaking changes?

No explicit breaking changes documented. The release modifies query parameter handling behavior (returning 400 instead of 500 for malformed keys), but this is a security hardening rather than an intentional API change. However, v2.22.5 itself is invalid due to missing package files.

What is the primary highlight of v2.22.5?

Hardened query parameter handling for dotted fields, filter, and order parameters - unexpected path segments are now skipped or rejected consistently, and malformed query-parameter keys return a 400 error instead of a 500

How should teams prepare to upgrade to v2.22.5?

Do not use v2.22.5 - it is deprecated with missing package files. Upgrade directly to v2.22.6 which contains the same security release. For older versions, patch ZIPs are available for versions 2.15.3-2.17.2, 2.18.0-2.19.0, and 2.20.0-2.22.4 with SKILL.md instructions.

📄 View Raw Release Notes (Original Developer Log)
<!-- ![v2.22.5](https://res.cloudinary.com/dza7lstvk/image/upload/v1794234983/Releases/v2-22-5-8b0371.png) # v2.22.5: Security Hardening for Unsafe Parameters (Deprecated) v2.22.5 hardens security around unsafe query parameters. CMS_BREAK --> > ⚠️ Deprecated: this release is deprecated as its packages are missing files. Make sure to update to v2.22.6 instead. It has the same security release. ## Highlights ### Hardened Query Parameter Handling This release hardens how Medusa turns dotted `fields`, filter, and `order` query parameters into its internal query objects. Unexpected path segments are now skipped or rejected consistently, and malformed query-parameter keys return a `400` error instead of a `500`. Projects hosted on Medusa Cloud are not impacted and require no action. We recommend that all self-hosted projects update to this version as soon as possible. #### Patches for Older Versions If you can't update to v2.22.5 yet, download the patch for your installed Medusa version: - [2.15.3-2.17.2.zip](https://github.com/user-attachments/files/34583612/2.15.3-2.17.2.zip) - [2.18.0-2.19.0.zip](https://github.com/user-attachments/files/34583631/2.18.0-2.19.0.zip) - [2.20.0-2.22.4.zip](https://github.com/user-attachments/files/34583639/2.20.0-2.22.4.zip) Each ZIP contains the patch files and a `SKILL.md` with step-by-step instructions to apply and verify them using your package manager (npm, Yarn, pnpm, or bun). You can follow the instructions manually or point your AI coding agent at the `SKILL.md`: ```bash Follow the instructions in 2.15.3-2.17.2/SKILL.md ``` ## Features * feat(promotion): add target selection strategy for buy-get promotions by [@kristianjakschnltg](https://github.com/kristianjakschnltg) in [#17563](https://github.com/medusajs/medusa/pull/17563) ## Bugs * fix(create-medusa-app): apply --version to scaffolded plugins by [@medusa-os-bot](https://github.com/medusa-os-bot) in [#17716](https://github.com/medusajs/medusa/pull/17716) * fix(utils, query, framework): harden dotted field/filter path handling when building queries by [@medusa-os-bot](https://github.com/medusa-os-bot) in [#17712](https://github.com/medusajs/medusa/pull/17712) * fix(medusa-oas-cli): keep each tag once when merging base file tags by [@medusa-os-bot](https://github.com/medusa-os-bot) in [#17714](https://github.com/medusajs/medusa/pull/17714) * fix(core-flows): don't copy a location's fulfillment sets into each shipping option by [@medusa-os-bot](https://github.com/medusa-os-bot) in [#17710](https://github.com/medusajs/medusa/pull/17710) * fix(promotion): let the automatic promotion prefilter use the promotion_id index by [@medusa-os-bot](https://github.com/medusa-os-bot) in [#17708](https://github.com/medusajs/medusa/pull/17708) * fix(docs): fix broken links and content parity in agent markdown by [@shahednasser](https://github.com/shahednasser) in [#17698](https://github.com/medusajs/medusa/pull/17698) ## Documentation * docs: document branch-aware root directory browser [automated] by [@medusa-os-bot](https://github.com/medusa-os-bot) in [#17725](https://github.com/medusajs/medusa/pull/17725) * docs(cloud): link to subprocessors list in data protection guide by [@shahednasser](https://github.com/shahednasser) in [#17703](https://github.com/medusajs/medusa/pull/17703) * docs: update cloud documentation [automated] by [@medusa-os-bot](https://github.com/medusa-os-bot) in [#17705](https://github.com/medusajs/medusa/pull/17705) * docs: regenerate DML references with docs links by [@shahednasser](https://github.com/shahednasser) in [#17701](https://github.com/medusajs/medusa/pull/17701) * docs(utils): link DML method TSDocs to data model docs by [@shahednasser](https://github.com/shahednasser) in [#17700](https://github.com/medusajs/medusa/pull/17700) * docs: fix medusajs installation in docs packages + update UI by [@shahednasser](https://github.com/shahednasser) in [#17694](https://github.com/medusajs/medusa/pull/17694) ## Chores * chore(dashboard): add missing translations [automated] by [@medusa-os-bot](https://github.com/medusa-os-bot) in [#17711](https://github.com/medusajs/medusa/pull/17711) * chore: clean up unused and duplicate GitHub Actions by [@shahednasser](https://github.com/shahednasser) in [#17706](https://github.com/medusajs/medusa/pull/17706) * chore: remove unused node-notifier dependency by [@shahednasser](https://github.com/shahednasser) in [#17704](https://github.com/medusajs/medusa/pull/17704) * chore(deps): replace deprecated lodash.isequal with dequal by [@shahednasser](https://github.com/shahednasser) in [#17702](https://github.com/medusajs/medusa/pull/17702) * chore(medusa-oas-cli): remove deprecated @readme/json-schema-ref-parser by [@shahednasser](https://github.com/shahednasser) in [#17699](https://github.com/medusajs/medusa/pull/17699) * chore(payment): align stripe and typescript alias specifiers by [@shahednasser](https://github.com/shahednasser) in [#17697](https://github.com/medusajs/medusa/pull/17697) * chore(integration-tests): update dotenv to v18 and remove unused get-port by [@shahednasser](https://github.com/shahednasser) in [#17696](https://github.com/medusajs/medusa/pull/17696) * chore(deps): update cva and @uiw/react-json-view prereleases by [@shahednasser](https://github.com/shahednasser) in [#17695](https://github.com/medusajs/medusa/pull/17695) * chore(deps): update dotenv-expand to v13 by [@shahednasser](https://github.com/shahednasser) in [#17693](https://github.com/medusajs/medusa/pull/17693) * chore(deps): update @changesets/cli to v3 by [@shahednasser](https://github.com/shahednasser) in [#17685](https://github.com/medusajs/medusa/pull/17685) * chore: migrate ESLint to flat config, update eslint to 10 and eslint-plugin-react-refresh to 0.5 by [@shahednasser](https://github.com/shahednasser) in [#17687](https://github.com/medusajs/medusa/pull/17687) * chore(docs): Generated References (automated) by [@medusa-os-bot](https://github.com/medusa-os-bot) in [#17692](https://github.com/medusajs/medusa/pull/17692) * chore(docs): Updated API Reference (automated) by [@medusa-os-bot](https://github.com/medusa-os-bot) in [#17690](https://github.com/medusajs/medusa/pull/17690) * chore(docs): Update version in documentation (automated) by [@medusa-os-bot](https://github.com/medusa-os-bot) in [#17689](https://github.com/medusajs/medusa/pull/17689) ## New Contributors * @kristianjakschnltg made their first contribution in [#17563](https://github.com/medusajs/medusa/pull/17563) **Full Changelog**: [v2.22.4...v2.22.5](https://github.com/medusajs/medusa/compare/v2.22.4...v2.22.5)