packagist mollie/mollie-api-php v4.1.1

one hour ago

Security

  • Restrict authenticated requests to trusted origins before attaching API keys or OAuth tokens. MollieApiClient trusts the configured API endpoint and https://api.mollie.com. Untrusted links throw UntrustedUrlException. This protects resource links and pagination, including resources hydrated from webhook snapshots. See #956.
  • Match the URL scheme, host, effective port, and user info against the trusted origin. Strip URL fragments before passing URLs to cURL.
  • Configure custom API hosts explicitly. Custom Connector implementations can implement Mollie\Api\Contracts\DefinesTrustedOrigins to declare trusted origins. Without that contract, only the origin of resolveBaseUrl() is trusted. Tests and fakes must use trusted URLs too.
  • Webhook signature verification remains required. This guard is defense in depth, not a replacement for verifying webhook payloads.

Full changelog: v4.1.0...v4.1.1

Don't miss a new mollie-api-php release

NewReleases is sending notifications on new releases.