{"id":"GHSA-cqf3-vpx7-rxhw","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","aliases":["CVE-2023-30614"],"modified":"2024-02-16T08:10:23.028063Z","published":"2023-04-20T21:28:48Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2023-04-20T21:28:48Z","nvd_published_at":"2023-04-19T18:15:07Z","cwe_ids":["CWE-79"],"severity":"HIGH"},"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"}],"affected":[{"package":{"name":"pay","ecosystem":"RubyGems","purl":"pkg:gem/pay"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.3.2"}]}],"versions":["0.0.0","0.0.2","1.0.0","1.0.0.beta2","1.0.0.beta3","1.0.0.beta4","1.0.0.beta5","1.0.0.rc1","1.0.0.rc2","1.0.0.rc3","1.0.1","1.0.2","2.0.0","2.0.1","2.0.2","2.0.3","2.1.0","2.1.1","2.1.2","2.1.3","2.2.0","2.2.1","2.2.2","2.3.0","2.3.1","2.4.0","2.4.2","2.4.3","2.4.4","2.5.0","2.6.0","2.6.1","2.6.10","2.6.11","2.6.2","2.6.3","2.6.4","2.6.5","2.6.6","2.6.7","2.6.8","2.6.9","2.7.0","2.7.1","2.7.2","3.0.0","3.0.1","3.0.10","3.0.11","3.0.12","3.0.13","3.0.14","3.0.15","3.0.16","3.0.17","3.0.18","3.0.19","3.0.2","3.0.20","3.0.21","3.0.22","3.0.23","3.0.24","3.0.4","3.0.5","3.0.6","3.0.7","3.0.8","3.0.9","4.0.0","4.0.1","4.0.2","4.0.4","4.1.0","4.1.1","4.2.0","4.2.1","5.0.0","5.0.1","5.0.2","5.0.3","5.0.4","6.0.0","6.0.1","6.0.2","6.0.3","6.1.0","6.1.1","6.1.2","6.2.0","6.2.1","6.2.2","6.2.3","6.2.4","6.3.0","6.3.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/04/GHSA-cqf3-vpx7-rxhw/GHSA-cqf3-vpx7-rxhw.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L"}]}