SecurityContext

CVE-2026-49473: @cedar-policy/authorization-for-expressjs - Authorization Bypass

  • Cve: CVE-2026-49473
  • Name: @cedar-policy/authorization-for-expressjs - Authorization Bypass
  • Description: @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. Versions prior to 0.3.0 have an issue 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. 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} for retrieving a single user with any authenticated user access), an actor can append a query string to bypass the more restrictive policy. Sending GET /users/?x=1 causes the middleware to match against /users/{id} (with id parameter set to ?x=1) and evaluate the less restrictive action, while Express routes the request to the /users list handler. This allows inappropriate access to the more restrictive endpoint. This issue has been addressed in version 0.30. Some workarounds are available. Validate and sanitize incoming request paths before they reach the authorization middleware. Ensure that applications do not rely solely on the middleware for authorization when defining multiple actions on overlapping path prefixes with different permission levels.
  • Impact: Attackers can bypass restrictive authorization policies, gaining unauthorized access to sensitive endpoints.
  • Remediation: Upgrade to version 0.3.0 or later.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: broken_access_control
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00469
  • Epss percentile: 0.41144
  • Assignee: [email protected]
  • Published at: 2026-08-13T00:17:32Z
  • Age in days: 103
  • Modified at: 2026-10-24T16:10:00Z
  • References total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-49473
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-436Interpretation Conflict

References

UrlSourceTags
https://github.com/cedar-policy/authorization-for-expressjs/releases/tag/v0.3.0nvd
https://github.com/cedar-policy/authorization-for-expressjs/security/advisories/GHSA-g4w6-vmgf-xqvxnvd

Projects

RepositoryLink kindsIndexedUrl
cedar-policy/authorization-for-expressjspackage, releases, security_advisoryyes/v1/repositories/cedar-policy/authorization-for-expressjs

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts