{"answers":{"affected":"2 open source packages ship an affected version, including @cedar-policy/authorization-for-expressjs.","exploited":"There is no known exploitation of CVE-2026-49473 in the wild and no public exploit code.","fix":"Upgrade @cedar-policy/authorization-for-expressjs to 0.3.0 or later.","what":"CVE-2026-49473 is a high-severity authentication bypass vulnerability in cedar-policy authorization-for-expressjs, published on 12 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-49473 and fix it if it is affected.\n\nWhat it is: CVE-2026-49473 is a high-severity authentication bypass vulnerability in cedar-policy authorization-for-expressjs, published on 12 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-49473 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @cedar-policy/authorization-for-expressjs (npm): affected all versions; fixed in 0.3.0\n- @cedar-policy/authorization-for-expressjs (npm): affected all versions; fixed in 0.3.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-49473/ (Markdown: https://insights.sbomify.com/CVE-2026-49473/index.md)","id":"CVE-2026-49473","markdown":"https://insights.sbomify.com/CVE-2026-49473/index.md","name":"CVE-2026-49473","record":{"aliases":["GHSA-g4w6-vmgf-xqvx"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["privilege_escalation","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Express.js authorization middleware","requires_auth":"low_privilege","summary":"Attackers can bypass authorization checks by manipulating query strings, gaining unauthorized access to restricted endpoints in Express applications using this middleware.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"},{"id":"CWE-436","name":"Interpretation Conflict"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"@cedar-policy/authorization-for-expressjs has an authorization bypass via query string manipulation","id":"CVE-2026-49473","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"auth_bypass","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"FreeSWITCH: Out-of-bounds memory access in core STUN attribute parsing","id":"CVE-2026-49475"},"packages":[{"ecosystem":"npm","fixed":["0.3.0"],"introduced":["0"],"last_affected":[],"package":"@cedar-policy/authorization-for-expressjs","purl":null,"source":"GHSA-g4w6-vmgf-xqvx"},{"ecosystem":"npm","fixed":["0.3.0"],"introduced":["0"],"last_affected":[],"package":"@cedar-policy/authorization-for-expressjs","purl":"pkg:npm/%40cedar-policy/authorization-for-expressjs","source":"GHSA-g4w6-vmgf-xqvx"}],"prev":{"headline":"FreeSWITCH includes a vulnerable function, PREFIX(prologTok)() from libexpat","id":"CVE-2026-49472"},"products":["authorization-for-expressjs"],"published":"2026-08-12","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-13","vendors":["cedar-policy"]},"summary":"Attackers can bypass authorization checks by manipulating query strings, gaining unauthorized access to restricted endpoints in Express applications using this middleware.","url":"https://insights.sbomify.com/CVE-2026-49473/"}