Vulnerability DatabaseGHSA-8f7v-xf7j-hc3q

GHSA-8f7v-xf7j-hc3q: 
PHP vulnerability analysis and mitigation

Identifiers passed to SDK methods are interpolated into API request paths without encoding. An identifier that comes from an end user can change the request path, for example ../../v1/payouts-account/balance or 123/../../v1/payouts, so the SDK sends a request carrying the merchant's x-client-id/x-api-key to a different payOS API endpoint. For cancel methods that request is a POST with the SDK's body.

Affected versions

EcosystemPackageAffectedPatched
Packagistpayos/payos<= 2.0.02.0.1

Severity

Moderate — CVSS 3.1 base score 4.8, CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N CWE-23 (Relative Path Traversal), CWE-116 (Improper Encoding or Escaping of Output).

Details

Affected methods:

  • paymentRequests->get/cancel, invoices->get/download, payouts->get, and the legacy getPaymentLinkInformation/cancelPaymentLink Precondition: the merchant application passes an identifier it received from an end user (for example an order code from a return URL) to one of these methods without validating it.

Fix

Identifiers are percent-encoded as a single path segment. Empty values, . and .., negative numbers and integers above 2^53-1 are rejected before any request is sent.

Workarounds

Until upgrading, validate identifiers before passing them to the SDK: accept only the expected format (for example digits for order codes and [A-Za-z0-9_-] for payment-link and payout ids).

Credits

Found by the payOS security team.


Source: NVD

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-7rj2-q7vr-2299MEDIUM6.1
  • PHP logoPHP
  • marjose123/filament-lockscreen
NoNoNov 12, 2026
GHSA-8f7v-xf7j-hc3qMEDIUM4.8
  • PHP logoPHP
  • payos/payos
NoYesNov 12, 2026
GHSA-v5hc-3j8r-9h37LOW3.7
  • PHP logoPHP
  • payos/payos
NoYesNov 12, 2026
GHSA-h4qh-3qph-xfm6LOW3.7
  • PHP logoPHP
  • payos/payos
NoYesNov 12, 2026
GHSA-fp4v-3mhm-pwjxLOW3.7
  • PHP logoPHP
  • payos/payos
NoYesNov 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management