Skip to content

Commit 48a5d94

Browse files
committed
Remove order data from failed email check on payment
1 parent 02db00f commit 48a5d94

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- Fixed a [high-severity](https://github.com/craftcms/cms/security/policy#severity--remediation) SQL injection vulnerability in the control panel. (GHSA-875v-7m49-8x88)
6+
- Fixed a [low-severity](https://github.com/craftcms/cms/security/policy#severity--remediation) Information disclosure vulnerability in payment controller action. (GHSA-3vxg-x5f8-f5qf)
67

78
## 4.10.2 - 2026-02-09
89

src/controllers/PaymentsController.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ public function actionPay(): ?Response
141141

142142
if (!$order->getIsActiveCart() && !$checkPaymentCanBeMade) {
143143
$error = Craft::t('commerce', 'Email required to make payments on a completed order.');
144-
return $this->asFailure($error, data: [
145-
$this->_cartVariableName => $this->cartArray($order),
146-
]);
144+
return $this->asFailure($error);
147145
}
148146

149147
if ($plugin->getSettings()->requireShippingAddressAtCheckout && !$order->shippingAddressId) {

0 commit comments

Comments
 (0)