原始 OSV JSON{
"id": "GHSA-q3wr-qw3g-3p4h",
"aliases": [
"CVE-2020-26298"
],
"details": "Redcarpet is a Ruby library for Markdown processing. In Redcarpet before version 3.5.1, there is an injection vulnerability which can enable a cross-site scripting attack. In affected versions no HTML escaping was being performed when processing quotes. This applies even when the `:escape_html` option was being used. This is fixed in version 3.5.1 by the referenced commit.",
"summary": "Injection/XSS in Redcarpet",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.5.1"
}
]
}
],
"package": {
"name": "redcarpet",
"ecosystem": "RubyGems"
}
}
],
"modified": "2022-10-07T20:41:40Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N"
}
],
"published": "2021-01-11T19:06:10Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-26298",
"type": "ADVISORY"
},
{
"url": "https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793",
"type": "WEB"
},
{
"url": "https://github.com/advisories/GHSA-q3wr-qw3g-3p4h",
"type": "ADVISORY"
},
{
"url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/redcarpet/CVE-2020-26298.yml",
"type": "WEB"
},
{
"url": "https://github.com/vmg/redcarpet",
"type": "PACKAGE"
},
{
"url": "https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-security",
"type": "WEB"
},
{
"url": "https://lists.debian.org/debian-lts-announce/2021/01/msg00014.html",
"type": "WEB"
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected] /message/BFMYDIONVWATY7EB6EARDVXT47AYCRNM",
"type": "WEB"
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected] /message/FNO4ZZUPGAEUXKQL4G2HRIH7CUZKPCT6",
"type": "WEB"
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected] /message/PXNNWHHAPREDM3XJDACYRTK7DBMUONBI",
"type": "WEB"
},
{
"url": "https://rubygems.org/gems/redcarpet",
"type": "WEB"
},
{
"url": "https://www.debian.org/security/2021/dsa-4831",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-74",
"CWE-79"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2021-01-11T19:15:00Z",
"github_reviewed_at": "2021-01-11T19:05:42Z"
}
}