Intel

AIKIDO-2026-329179

swag/paypal is vulnerable to Insecure Direct Object Reference (IDOR)

GHSA-mwvm-68w4-32gqPublished Sep 23, 2026
September 23, 2026

53

CVE Score

Medium

Insecure Direct Object Reference (IDOR)

Are you affected? Scan for Free

TL;DR

SwagPayPal's /handle-payment store-api endpoint accepts a paypalOrderId value and writes it directly into the order transaction's custom fields without validating it against PayPal's API or checking that it belongs to the current transaction. Submitting the PayPal order resource ID of a different, already-paid order lets that unrelated Shopware transaction be moved to paid status, and arbitrary or non-existent IDs are passed straight through to the data abstraction layer. The PayPal order resource ID of any order is exposed via /store-api/order, so a shopper can read another order's ID and reuse it against their own transaction. The fix reserves each PayPal order ID in a dedicated database table with a unique primary key and rejects the request with a bad-request error when the ID is already tied to a different transaction.

How do I fix this?

Upgrade the swag/paypal and/or the store.shopware.com/swagpaypal library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Versions

0.0.1 - 8.12.0

Fixed in 8.12.1

0.0.1 - 9.13.0

Fixed in 9.13.1

0.0.1 - 10.8.0

Fixed in 10.8.1

Background info

swag/paypal is vulnerable to Insecure Direct Object Reference (IDOR) in versions 0.0.1 - 8.12.0, 0.0.1 - 9.13.0 and 0.0.1 - 10.8.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea