CVE-2023-30614: Pay Cross-Site Scripting Vulnerability
HIGHCVE-2023-30614 is a HIGH (CVSS 7.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Pay libraries in the RubyGems ecosystem. The issue involves improper neutralization of script-related html tags in a web page (basic xss) in pay. Remediation is available by upgrading affected packages to version 6.3.2.
CVE-2023-30614 at a Glance
Security Impact
CVSS: 7.1
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:R/S:C/C:L/I:L/A:L).
How to Fix CVE-2023-30614
To remediate this vulnerability, upgrade all affected Pay 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 pay to 6.3.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for pay
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-30614, inspect your project dependencies for Pay:
inspect dependencies for pay
Analyze the terminal output to locate any version of Pay in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.3.2), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Pay, 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-30614 Affected Pay Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pay
|
RubyGems |
< 6.3.2
|
6.3.2
|
References
Frequently Asked Questions
What is CVE-2023-30614?
Which Pay versions are affected?
What version fixes CVE-2023-30614?
Is pay affected?
What is the CVSS score of CVE-2023-30614?
What CWE is associated with CVE-2023-30614?
How can I check RubyGems dependencies for CVE-2023-30614?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cqf3-vpx7-rxhw",
"modified" : "2023-04-20T21:28:48Z",
"published" : "2023-04-20T21:28:48Z",
"aliases" : [ "CVE-2023-30614" ],
"summary" : "Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in Pay",
"details" : "### Impact\nA payments info page of Pay is susceptible to reflected Cross-site scripting. An attacker could create a working URL that renders a javascript link to a user on a Rails application that integrates Pay. This URL could be distributed via email to specifically target certain individuals. If the targeted application contains a functionality to submit user-generated content (such as comments) the attacker could even distribute the URL using that functionality.\n\n### Patches\nThis has been patched in version 6.3.2 and above.\n\nPay will now sanitize the `back` parameter and only permit relative paths.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "pay"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.3.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/pay-rails/pay/security/advisories/GHSA-cqf3-vpx7-rxhw"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-30614"
}, {
"type" : "WEB",
"url" : "https://github.com/pay-rails/pay/commit/5d6283a24062bd272a524ec48415f536a67ad57f"
}, {
"type" : "WEB",
"url" : "https://github.com/pay-rails/pay/commit/c067771d8c7514acde4b948b474caf054bb0e25d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pay-rails/pay"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/pay/CVE-2023-30614.yml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-04-20T21:28:48Z",
"nvd_published_at" : "2023-04-19T18:15:07Z"
}
}