Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-g4w6-vmgf-xqvx: @cedar-policy/authorization-for-expressjs has an authorization bypass via query string manipulation

0
High
Published: 06/30/2026 (06/30/2026, 18:09:13 UTC)
Source: GCVE Database
Product: @cedar-policy/authorization-for-expressjs

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

npmghsa
@cedar-policy/authorization-for-expressjs
Affected versions
<0.3.0

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

AILast updated: 06/30/2026, 23:52:24 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses