CVE-2023-23941: Swag/paypal Payment Information Sent To PayPal Vulnerability

HIGH
Advisory Identifier: GHSA-vxpm-8hcp-qh27
CVSS 7.5
CWE-345
Published
Advisory Summary

CVE-2023-23941 is a HIGH (CVSS 7.5) payment information sent to paypal vulnerability (CWE-345: Insufficient Verification of Data Authenticity) affecting Swag/paypal libraries in the Packagist ecosystem. The issue involves payment information sent to paypal not necessarily identical to created order. Remediation is available by upgrading affected packages to version 5.4.4.

CVE-2023-23941 at a Glance

CVE Identifier CVE-2023-23941
GHSA Identifier GHSA-vxpm-8hcp-qh27
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-345: Insufficient Verification of Data Authenticity
Affected Product Swag/paypal
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2023-23941

To remediate this vulnerability, upgrade all affected Swag/paypal dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

swag/paypal fixed: 5.4.4
Upgrade swag/paypal to 5.4.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for swag/paypal

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-23941, inspect your project dependencies for Swag/paypal:

inspect dependencies for swag/paypal

Analyze the terminal output to locate any version of Swag/paypal in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.4.4), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-345: Insufficient Verification of Data Authenticity, where the product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data. In Swag/paypal, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact If JavaScript-based PayPal checkout methods are used (PayPal Plus, Smart Payment Buttons, SEPA, Pay Later, Venmo, Credit card), the amount and item list sent to PayPal may not be identical to the one in the created order. ### Patches The problem has been fixed with version 5.4.4 ### Workarounds Disable the aforementioned payment methods or use the Security Plugin in version >= 1.0.21. ### References [Shopware blog post](https://news.shopware.com/security-issue-in-paypal-plugin-update-required)

CVE-2023-23941 Affected Swag/paypal Versions

1 component(s)
Fixed Versions:
5.4.4
Product / Package Ecosystem Affected Versions Fixed Version
swag/paypal
Packagist
< 5.4.4
5.4.4

References

Frequently Asked Questions

What is CVE-2023-23941?
CVE-2023-23941 is a security vulnerability in Swag/paypal involving Payment information sent to PayPal not necessarily identical to created order under CWE-345: Insufficient Verification of Data Authenticity.
Which Swag/paypal versions are affected?
Affected versions include releases prior to 5.4.4 across affected packages: swag/paypal.
What version fixes CVE-2023-23941?
Upgrading to 5.4.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is swag/paypal affected?
Yes, swag/paypal is affected in releases prior to 5.4.4. Upgrade your dependency to 5.4.4 or later.
What is the CVSS score of CVE-2023-23941?
CVE-2023-23941 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2023-23941?
CVE-2023-23941 is classified under CWE-345: Insufficient Verification of Data Authenticity (The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.).
How can I check Packagist dependencies for CVE-2023-23941?
Run the dependency tree command: 'inspect dependencies for swag/paypal'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vxpm-8hcp-qh27",
  "modified" : "2023-02-15T18:38:53Z",
  "published" : "2023-02-03T21:07:28Z",
  "aliases" : [ "CVE-2023-23941" ],
  "summary" : "Payment information sent to PayPal not necessarily identical to created order",
  "details" : "### Impact\nIf JavaScript-based PayPal checkout methods are used (PayPal Plus, Smart Payment Buttons, SEPA, Pay Later, Venmo, Credit card), the amount and item list sent to PayPal may not be identical to the one in the created order.\n\n### Patches\nThe problem has been fixed with version 5.4.4\n\n### Workarounds\nDisable the aforementioned payment methods or use the Security Plugin in version >= 1.0.21.\n\n### References\n[Shopware blog post](https://news.shopware.com/security-issue-in-paypal-plugin-update-required)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "swag/paypal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.4.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/shopware/SwagPayPal/security/advisories/GHSA-vxpm-8hcp-qh27"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-23941"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/shopware/SwagPayPal/commit/57db5f4a57ef0a1646b509b415de9f03bf441b08"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/shopware/SwagPayPal"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-345" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-03T21:07:28Z",
    "nvd_published_at" : "2023-02-03T21:15:00Z"
  }
}