GHSA-g4w6-vmgf-xqvx: @cedar-policy/authorization-for-expressjs has an authorization bypass via query string manipulation
@cedar-policy/authorization-for-expressjs versions prior to 0.3.0 contain an authorization bypass vulnerability due to inconsistent request path handling. The middleware uses req.originalUrl, which includes the query string, to match authorization policies, while Express routes requests based only on the path component. This mismatch allows attackers to manipulate query strings to bypass stricter authorization policies on overlapping path prefixes.
AI Analysis
Technical Summary
@cedar-policy/authorization-for-expressjs is an Express.js middleware that maps HTTP requests to Cedar authorization actions. The vulnerability arises because the middleware matches requests using req.originalUrl (including query strings), whereas Express routing uses only the path component. This discrepancy can be exploited when an application defines different authorization requirements for overlapping paths (e.g., GET /users with admin-only access and GET /users/{id} with less restrictive access). An attacker can append a query string to a request to cause the middleware to authorize against a less restrictive action while Express routes the request to the more restrictive handler, effectively bypassing authorization controls. Versions prior to 0.3.0 are affected. The issue is fixed in version 0.3.0.
Potential Impact
An attacker with at least low privilege can bypass stricter authorization policies by manipulating query strings in requests. This leads to unauthorized access to resources that should be restricted, potentially exposing sensitive data or functionality. The vulnerability affects confidentiality, integrity, and availability as unauthorized actions may be performed.
Mitigation Recommendations
Upgrade to @cedar-policy/authorization-for-expressjs version 0.3.0 or later, where this issue is fixed. Additionally, validate and sanitize incoming request paths before they reach the authorization middleware. Avoid relying solely on this middleware for authorization when defining multiple actions on overlapping path prefixes with different permission levels.
GHSA-g4w6-vmgf-xqvx: @cedar-policy/authorization-for-expressjs has an authorization bypass via query string manipulation
Description
@cedar-policy/authorization-for-expressjs versions prior to 0.3.0 contain an authorization bypass vulnerability due to inconsistent request path handling. The middleware uses req.originalUrl, which includes the query string, to match authorization policies, while Express routes requests based only on the path component. This mismatch allows attackers to manipulate query strings to bypass stricter authorization policies on overlapping path prefixes.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
@cedar-policy/authorization-for-expressjs is an Express.js middleware that maps HTTP requests to Cedar authorization actions. The vulnerability arises because the middleware matches requests using req.originalUrl (including query strings), whereas Express routing uses only the path component. This discrepancy can be exploited when an application defines different authorization requirements for overlapping paths (e.g., GET /users with admin-only access and GET /users/{id} with less restrictive access). An attacker can append a query string to a request to cause the middleware to authorize against a less restrictive action while Express routes the request to the more restrictive handler, effectively bypassing authorization controls. Versions prior to 0.3.0 are affected. The issue is fixed in version 0.3.0.
Potential Impact
An attacker with at least low privilege can bypass stricter authorization policies by manipulating query strings in requests. This leads to unauthorized access to resources that should be restricted, potentially exposing sensitive data or functionality. The vulnerability affects confidentiality, integrity, and availability as unauthorized actions may be performed.
Mitigation Recommendations
Upgrade to @cedar-policy/authorization-for-expressjs version 0.3.0 or later, where this issue is fixed. Additionally, validate and sanitize incoming request paths before they reach the authorization middleware. Avoid relying solely on this middleware for authorization when defining multiple actions on overlapping path prefixes with different permission levels.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-g4w6-vmgf-xqvx
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-49473"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a4452e927e9c797198e1a9b
Added to database: 06/30/2026, 23:36:09 UTC
Last enriched: 06/30/2026, 23:52:24 UTC
Last updated: 06/30/2026, 23:52:24 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.