CVE-2023-23941: Swag/paypal Payment Information Sent To PayPal Vulnerability
HIGHCVE-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
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).
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.
Upgrade swag/paypal to 5.4.4
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
CVE-2023-23941 Affected Swag/paypal Versions
1 component(s)| 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?
Which Swag/paypal versions are affected?
What version fixes CVE-2023-23941?
Is swag/paypal affected?
What is the CVSS score of CVE-2023-23941?
What CWE is associated with CVE-2023-23941?
How can I check Packagist dependencies for CVE-2023-23941?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}