Read the docs
TI-2023-30847 Aliases GHSA-wm63-7627-ch33

@vendure/core's insecure currencyCode handling allows wrong payment amounts

Priority LOW 38Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

### Impact Currently, in many Vendure deployments it's possible to select any currencyCode (really any, doesn't need to be assigned to the channel) and pay through Mollie and Stripe in that particular currencyCode. The prices are not transformed. The result is the Order is in Payment Settled in the foreign currency. See SS, CZK is not in the channel. I've tested with Mollie and Stripe it both works. **Further notes** After looking into this further and with help from the comments below, the root cause of this vulnerability is the ability to specify an arbitrary `currencyCode` as a query parameter to an API call, and then Vendure will use this and pass it to the rest of the system as `RequestContext.currencyCode`. The solution is to add validation to the passed `currencyCode` to ensure that it matches one of the available `availableCurrencyCodes` of the active Channel. Furthermore, an additional check has been added for when the currencyCode changes during the AddingItems stage - in this case we need to re-calculate the prices in the new currency. ### Patches v2.1.3 ### Workarounds You can define a custom OrderProcess [onTransitionStart function](https://docs.vendure.io/guides/core-concepts/orders/#intercepting-a-state-transition) which can verify the order's `currencyCode` is as expected before allowing the transition to the `ArrangingPayment` state.

Why it matters now

Fix Fixed @vendure/core (npm): 2.1.3

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—@vendure/core (npm)before 2.1.32.1.3Patch availableGHSA-wm63-7627-ch33
  • @vendure/core (npm) Vendor— Affected before 2.1.3 Fixed in 2.1.3 Patch available GHSA-wm63-7627-ch33

Remediation

  • Fix · GHSA-wm63-7627-ch33 @vendure/core (npm) Fixed in 2.1.3 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-wm63-7627-ch33

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences