Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2026-100872 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

Description

Sylius versions before 2.1.16 and 2.2.9 fail to validate payment amounts during cart recalculation, allowing unauthenticated attackers to modify order totals after gateway transaction initiation. Attackers can pay a small amount, enlarge the order after gateway capture, and have the system mark the inflated order as fully paid while the gateway captured only the original amount.

Metrics

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-345Insufficient Verification of Data Authenticity[email protected]

Affected Products

ProductVersions
Sylius
>= 2.0.0, < 2.1.16 (semver)
>= 2.2.0, < 2.2.9 (semver)

CPE

  • cpe:2.3:a:sylius:sylius:*:*:*:*:*:*:*:*

Remediation

  • Upgrade: 2.1.16moderate effort
  • Upgrade: 2.2.9moderate effort
  • Workaround:moderate effort

    Create a new file at `src/Payment/ClaimedByGatewayCheckerTrait.php` with the following content: ```php <?php declare(strict_types=1); namespace App\Payment; use Sylius\Component\Payment\Model\PaymentInterface; use Sylius\Component\Payment\Model\PaymentRequestInterface; trait ClaimedByGatewayCheckerTrait { private function isClaimedByGateway(PaymentInterface $payment): bool { $claimingActions = [PaymentRequestInterface::ACTION_CAPTURE, PaymentRequestInterface::ACTION_AUTHORIZE]; $nonClaimingStates = [ PaymentRequestInterface::STATE_NEW, PaymentRequestInterface::STATE_FAILED, PaymentRequestInterface::STATE_CANCELLED, ]; $claimingPaymentRequests = $payment->getPaymentRequests()->filter( static function (PaymentRequestInterface $paymentRequest) use ($claimingActions, $nonClaimingStates): bool { return in_array($paymentRequest->getAction(), $claimingActions, true) && !in_array($paymentRequest->getState(), $nonClaimingStates, true); }, ); return !$claimingPaymentRequests->isEmpty(); } } ``` Create a new file at `src/Payment/Remover/ClaimedPaymentAwareOrderPaymentsRemover.php` with the following content: ```php <?php declare(strict_types=1); namespace App\Payment\Remover; use App\Payment\ClaimedByGatewayCheckerTrait; use Sylius\Component\Core\Model\OrderInterface; use Sylius\Component\Core\Payment\Remover\OrderPaymentsRemoverInterface; use Sylius\Component\Payment\Model\PaymentInterface; final class ClaimedPaymentAwareOrderPaymentsRemover implements OrderPaymentsRemoverInterface { use ClaimedByGatewayCheckerTrait; public function __construct(private OrderPaymentsRemoverInterface $decoratedOrderPaymentsRemover) { } public function canRemovePayments(OrderInterface $order): bool { return $this->decoratedOrderPaymentsRemover->canRemovePayments($order); } public function removePayments(OrderInterface $order): void { $removablePayments = $order->getPayments()->filter(function (PaymentInterface $payment): bool { return $payment->getState() === PaymentInterface::STATE_CART && !$this->isClaimedByGateway($payment); }); foreach ($removablePayments as $payment) { $order->removePayment($payment); } } } ``` Create a new file at `src/OrderProcessing/ClaimedPaymentAwareOrderPaymentProcessor.php` with the following content: ```php <?php declare(strict_types=1); namespace App\OrderProcessing; use App\Payment\ClaimedByGatewayCheckerTrait; use Sylius\Component\Core\Model\OrderInterface; use Sylius\Component\Core\Payment\Exception\NotProvidedOrderPaymentException; use Sylius\Component\Core\Payment\Provider\OrderPaymentProviderInterface; use Sylius\Component\Core\Payment\Remover\OrderPaymentsRemoverInterface; use Sylius\Component\Order\Model\OrderInterface as BaseOrderInterface; use Sylius\Component\Order\Processor\OrderProcessorInterface; use Webmozart\Assert\Assert; final class ClaimedPaymentAwareOrderPaymentProcessor implements OrderProcessorInterface { use ClaimedByGatewayCheckerTrait; /** @param array<string> $unprocessableOrderStates */ public function __construct( private OrderProcessorInterface $decoratedOrderPaymentProcessor, private OrderPaymentProviderInterface $orderPaymentProvider, private OrderPaymentsRemoverInterface $orderPaymentsRemover, private array $unprocessableOrderStates, private string $targetState, ) { } public function process(BaseOrderInterface $order): void { Assert::isInstanceOf($order, OrderInterface::class); /** @var OrderInterface $order */ if (in_array($order->getState(), $this->unprocessableOrderStates, true)) { $this->decoratedOrderPaymentProcessor->process($order); return; } if ($this->orderPaymentsRemover->canRemovePayments($order)) { $this->decoratedOrderPaymentProcessor->process($order); return; } $lastPayment = $order->getLastPayment($this->targetState); if (null !== $lastPayment && $this->isClaimedByGateway($lastPayment)) { if ( $lastPayment->getAmount() === $order->getTotal() && $lastPayment->getCurrencyCode() === $order->getCurrencyCode() ) { return; } try { $newPayment = $this->orderPaymentProvider->provideOrderPayment($order, $this->targetState); $order->addPayment($newPayment); } catch (NotProvidedOrderPaymentException) { } return; } $this->decoratedOrderPaymentProcessor->process($order); } } ``` Register the decorators in `config/services.yaml`: ```yaml services: App\Payment\Remover\ClaimedPaymentAwareOrderPaymentsRemover: decorates: sylius.remover.payment.order arguments: $decoratedOrderPaymentsRemover: '@.inner' app.order_payment_processor.checkout: class: App\OrderProcessing\ClaimedPaymentAwareOrderPaymentProcessor decorates: sylius.order_processing.order_payment_processor.checkout arguments: $decoratedOrderPaymentProcessor: '@.inner' $orderPaymentProvider: '@sylius.provider.payment.order' $orderPaymentsRemover: '@sylius.remover.payment.order' $unprocessableOrderStates: '%sylius.order_payment_processor.checkout.unsupported_states%' $targetState: 'cart' app.order_payment_processor.after_checkout: class: App\OrderProcessing\ClaimedPaymentAwareOrderPaymentProcessor decorates: sylius.order_processing.order_payment_processor.after_checkout arguments: $decoratedOrderPaymentProcessor: '@.inner' $orderPaymentProvider: '@sylius.provider.payment.order' $orderPaymentsRemover: '@sylius.remover.payment.order' $unprocessableOrderStates: '%sylius.order_payment_processor.after_checkout.unsupported_states%' $targetState: 'new' ``` Finally, clear the cache with the command: `bin/console cache:clear`.

Change History

2 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2026-100872
NVD Published Date:
Sep 27, 2026
NVD Last Modified:
Sep 28, 2026
Source:
[email protected]
CVE-2026-100872 Details - Not Deferred