External Control of Assumed-Immutable Web Parameter Affecting sylius/paypal-plugin package, versions <1.6.2>=1.7.0, <1.7.2>=2.0.0, <2.0.2


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-SYLIUSPAYPALPLUGIN-9486465
  • published20 Mar 2025
  • disclosed19 Mar 2025
  • creditUnknown

Introduced: 19 Mar 2025

NewCVE-2025-30152  (opens in a new tab)
CWE-472  (opens in a new tab)

How to fix?

Upgrade sylius/paypal-plugin to version 1.6.2, 1.7.2, 2.0.2 or higher.

Overview

sylius/paypal-plugin is a PayPal plugin for Sylius.

Affected versions of this package are vulnerable to External Control of Assumed-Immutable Web Parameter. The user-input payment amount is not adequately confirmed to be the same between payment completion and order authorization, in ProcessPayPalOrderAction.php and CompletePayPalOrderFromPaymentPageAction.php An attacker can intentionally pay less than the actual total order amount by modifying the shopping cart contents during checkout.

Workaround

This vulnerability can be worked around by manually patching PayPalOrderCompleteProcessor, CompletePayPalOrderListener, and CaptureAction to include payment verification logic.

References

CVSS Base Scores

version 4.0
version 3.1