{"id":"GHSA-9qfv-wgh2-m6p8","summary":"canto-saas-api: Authenticated API requests can be redirected via unencoded path variables","details":"## Summary\n\n  In affected versions, `Request::buildRequestUrl()` inserts path variables into\n  the request URL without URL encoding (`implode('/', $pathVariables)`). All\n  request classes implementing `getPathVariables()` are affected, e.g.\n  `GetContentDetailsRequest` (`scheme`, `contentId`).\n\n  If a consuming application passes untrusted input (such as an ID taken from\n  an HTTP request parameter) as a path variable, characters like `../`, `?` or\n  `#` are sent verbatim and can change the path of the resulting API request.\n\n  ## Impact\n\n  An attacker who controls a path variable value can redirect the\n  library's authenticated request — the Bearer access token is attached in\n  `AbstractEndpoint::sendRequest()` — to a different API endpoint of the same\n  Canto instance, causing unintended reads or writes with the privileges of the\n  configured app. The impact depends on how the consuming application sources\n  path variable values; applications that only pass trusted, validated IDs are\n  not exploitable.\n\n  ## Patches\n\n  Fixed in 3.0.0: every path segment is encoded with `rawurlencode()` before\n  being inserted into the request URL.\n\n  ## Workarounds\n\n  If you cannot upgrade, validate untrusted values before passing them to\n  request classes, e.g. enforce an allowlist pattern such as\n  `^[A-Za-z0-9_-]+$` for content IDs and schemes.","aliases":["CVE-2026-55374"],"modified":"2026-09-10T03:50:55.323244587Z","published":"2026-06-19T14:13:55Z","database_specific":{"cwe_ids":["CWE-74","CWE-918"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-06-19T14:13:55Z","nvd_published_at":null},"references":[{"type":"WEB","url":"https://github.com/jleehr/canto-saas-api/security/advisories/GHSA-9qfv-wgh2-m6p8"},{"type":"PACKAGE","url":"https://github.com/jleehr/canto-saas-api"}],"affected":[{"package":{"name":"jleehr/canto-saas-api","ecosystem":"Packagist","purl":"pkg:composer/jleehr/canto-saas-api"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.0"}]}],"versions":["1.0.3","2.0.0"],"database_specific":{"last_known_affected_version_range":"\u003c= 2.0.0","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-9qfv-wgh2-m6p8/GHSA-9qfv-wgh2-m6p8.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"}]}