{"id":"GHSA-r5jw-62xg-j433","summary":"Cross-Site Scripting in Kaminari","details":"### Impact\nIn Kaminari before 1.2.1, there is a vulnerability that would allow an attacker to inject arbitrary code into pages with pagination links. This has been fixed in 1.2.1.\n\n### Releases\nThe 1.2.1 gem including the patch has already been released.\nAll past released versions are affected by this vulnerability.\n\n### Workarounds\nApplication developers who can't update the gem can workaround by overriding the `PARAM_KEY_EXCEPT_LIST` constant.\n\n```ruby\nmodule Kaminari::Helpers\n  PARAM_KEY_EXCEPT_LIST = [:authenticity_token, :commit, :utf8, :_method, :script_name, :original_script_name].freeze\nend\n```\n\n### Credits\nThanks to Daniel Mircea for finding the issue and sending a patch via GitHub. Also thanks to Aditya Prakash for reporting the vulnerability.","aliases":["CVE-2020-11082"],"modified":"2026-05-07T12:14:07.478961318Z","published":"2020-05-28T21:10:11Z","database_specific":{"github_reviewed_at":"2020-05-28T21:05:32Z","nvd_published_at":"2020-05-28T21:15:00Z","cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/kaminari/kaminari/security/advisories/GHSA-r5jw-62xg-j433"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-11082"},{"type":"WEB","url":"https://github.com/github/advisory-review/pull/1020"},{"type":"WEB","url":"https://github.com/kaminari/kaminari/commit/8dd52a1aed3d2fa2835d836de23fc0d8c4ff5db8"},{"type":"PACKAGE","url":"https://github.com/kaminari/kaminari"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/kaminari/CVE-2020-11082.yml"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2021/09/msg00011.html"},{"type":"WEB","url":"https://www.debian.org/security/2021/dsa-5005"}],"affected":[{"package":{"name":"kaminari","ecosystem":"RubyGems","purl":"pkg:gem/kaminari"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.1"}]}],"versions":["0.1.0","0.10.0","0.10.1","0.10.2","0.10.3","0.10.4","0.11.0","0.12.0","0.12.1","0.12.2","0.12.3","0.12.4","0.13.0","0.14.0","0.14.1","0.15.0","0.15.1","0.16.0","0.16.1","0.16.2","0.16.3","0.17.0","0.2.0","0.2.1","0.3.0","0.4.0","0.5.0","0.6.0","0.6.1","0.7.0","0.8.0","0.9.0","0.9.1","0.9.10","0.9.12","0.9.13","0.9.2","0.9.3","0.9.4","0.9.5","0.9.6","0.9.7","0.9.8","0.9.9","1.0.0","1.0.0.beta2","1.0.0.rc1","1.0.1","1.1.0","1.1.1","1.2.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/05/GHSA-r5jw-62xg-j433/GHSA-r5jw-62xg-j433.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:L"}]}