Skip to content

canto-saas-api: Authenticated API requests can be redirected via unencoded path variables

Moderate severity GitHub Reviewed Published Jun 18, 2026 in jleehr/canto-saas-api • Updated Jun 19, 2026

Package

composer jleehr/canto-saas-api (Composer)

Affected versions

<= 2.0.0

Patched versions

3.0.0

Description

Summary

In affected versions, Request::buildRequestUrl() inserts path variables into
the request URL without URL encoding (implode('/', $pathVariables)). All
request classes implementing getPathVariables() are affected, e.g.
GetContentDetailsRequest (scheme, contentId).

If a consuming application passes untrusted input (such as an ID taken from
an HTTP request parameter) as a path variable, characters like ../, ? or
# are sent verbatim and can change the path of the resulting API request.

Impact

An attacker who controls a path variable value can redirect the
library's authenticated request — the Bearer access token is attached in
AbstractEndpoint::sendRequest() — to a different API endpoint of the same
Canto instance, causing unintended reads or writes with the privileges of the
configured app. The impact depends on how the consuming application sources
path variable values; applications that only pass trusted, validated IDs are
not exploitable.

Patches

Fixed in 3.0.0: every path segment is encoded with rawurlencode() before
being inserted into the request URL.

Workarounds

If you cannot upgrade, validate untrusted values before passing them to
request classes, e.g. enforce an allowlist pattern such as
^[A-Za-z0-9_-]+$ for content IDs and schemes.

References

@jleehr jleehr published to jleehr/canto-saas-api Jun 18, 2026
Published to the GitHub Advisory Database Jun 19, 2026
Reviewed Jun 19, 2026
Last updated Jun 19, 2026

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

EPSS score

Weaknesses

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. Learn more on MITRE.

Server-Side Request Forgery (SSRF)

The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination. Learn more on MITRE.

CVE ID

CVE-2026-55374

GHSA ID

GHSA-9qfv-wgh2-m6p8

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.