High, CVSS 8.8npmAmendedPublished
@cedar-policy/authorization-for-expressjs has an authorization bypass via query string manipulation
CVE-2026-49473 · GHSA-g4w6-vmgf-xqvx
- Affected
- npm @cedar-policy/authorization-for-expressjs <= 0.2.0
- Fixed in
- 0.3.0· Vendor fix available
- Issue
- @cedar-policy/authorization-for-expressjs is an open-source Express.js middleware that integrates Cedar authorization into Express applications by mapping HTTP requests to Cedar actions and evaluating authorization policies before allowing requests to proceed. An issue exists where, under certain circumstances, the middleware matches incoming requests against Cedar action mappings using req.originalUrl, which includes the query string, while Express routes requests using only the path component. Impact The middleware uses req.originalUrl to match incoming requests against Cedar action mappings. In Express, req.originalUrl includes the query string, while route matching uses only the path. This creates a divergence between what Cedar authorizes and what Express executes. When an application defines separate actions for overlapping path prefixes with different authorization requirements (for example, GET /users for listing all users with admin-only access, and GET /users/{id}…
Recommended action: Upgrade to 0.3.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.