原始 OSV JSON{
"id": "GHSA-r5jw-62xg-j433",
"aliases": [
"CVE-2020-11082"
],
"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.",
"summary": "Cross-Site Scripting in Kaminari",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2.1"
}
]
}
],
"package": {
"name": "kaminari",
"ecosystem": "RubyGems"
}
}
],
"modified": "2021-09-23T13:55:11Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:L"
}
],
"published": "2020-05-28T21:10:11Z",
"references": [
{
"url": "https://github.com/kaminari/kaminari/security/advisories/GHSA-r5jw-62xg-j433",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-11082",
"type": "ADVISORY"
},
{
"url": "https://github.com/github/advisory-review/pull/1020",
"type": "WEB"
},
{
"url": "https://github.com/kaminari/kaminari/commit/8dd52a1aed3d2fa2835d836de23fc0d8c4ff5db8",
"type": "WEB"
},
{
"url": "https://github.com/kaminari/kaminari",
"type": "PACKAGE"
},
{
"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",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2020-05-28T21:15:00Z",
"github_reviewed_at": "2020-05-28T21:05:32Z"
}
}