gsd-2020-26298
Vulnerability from gsd
Modified
2021-01-11 00:00
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.
Aliases



{
  "GSD": {
    "alias": "CVE-2020-26298",
    "description": "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.",
    "id": "GSD-2020-26298",
    "references": [
      "https://www.suse.com/security/cve/CVE-2020-26298.html",
      "https://www.debian.org/security/2021/dsa-4831"
    ]
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "affected": [
        {
          "package": {
            "ecosystem": "RubyGems",
            "name": "redcarpet",
            "purl": "pkg:gem/redcarpet"
          }
        }
      ],
      "aliases": [
        "CVE-2020-26298",
        "GHSA-q3wr-qw3g-3p4h"
      ],
      "details": "Redcarpet is a Ruby library for Markdown processing. In Redcarpet before\nversion 3.5.1, there is an injection vulnerability which can enable a cross-site\nscripting attack. In affected versions no HTML escaping was being performed when\nprocessing quotes. This applies even when the `:escape_html` option was being used.\n",
      "id": "GSD-2020-26298",
      "modified": "2021-01-11T00:00:00.000Z",
      "published": "2021-01-11T00:00:00.000Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793"
        },
        {
          "type": "WEB",
          "url": "https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-security"
        }
      ],
      "schema_version": "1.4.0",
      "severity": [
        {
          "score": 6.8,
          "type": "CVSS_V3"
        }
      ],
      "summary": "Injection/XSS in Redcarpet"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2020-26298",
        "STATE": "PUBLIC",
        "TITLE": "Injection in Redcarpet"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "redcarpet",
                    "version": {
                      "version_data": [
                        {
                          "version_value": "\u003c 3.5.1"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "vmg"
            }
          ]
        }
      },
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "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."
          }
        ]
      },
      "generator": {
        "engine": "Vulnogram 0.0.9"
      },
      "impact": {
        "cvss": {
          "attackComplexity": "LOW",
          "attackVector": "NETWORK",
          "availabilityImpact": "NONE",
          "baseScore": 6.8,
          "baseSeverity": "MEDIUM",
          "confidentialityImpact": "NONE",
          "integrityImpact": "HIGH",
          "privilegesRequired": "LOW",
          "scope": "CHANGED",
          "userInteraction": "REQUIRED",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N",
          "version": "3.1"
        }
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (\u0027Injection\u0027)"
              }
            ]
          },
          {
            "description": [
              {
                "lang": "eng",
                "value": "CWE-79 Cross-site Scripting (XSS)"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://github.com/advisories/GHSA-q3wr-qw3g-3p4h",
            "refsource": "CONFIRM",
            "url": "https://github.com/advisories/GHSA-q3wr-qw3g-3p4h"
          },
          {
            "name": "https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793",
            "refsource": "MISC",
            "url": "https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793"
          },
          {
            "name": "https://rubygems.org/gems/redcarpet",
            "refsource": "MISC",
            "url": "https://rubygems.org/gems/redcarpet"
          },
          {
            "name": "https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-security",
            "refsource": "MISC",
            "url": "https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-security"
          },
          {
            "name": "[debian-lts-announce] 20210115 [SECURITY] [DLA 2526-1] ruby-redcarpet security update",
            "refsource": "MLIST",
            "url": "https://lists.debian.org/debian-lts-announce/2021/01/msg00014.html"
          },
          {
            "name": "DSA-4831",
            "refsource": "DEBIAN",
            "url": "https://www.debian.org/security/2021/dsa-4831"
          },
          {
            "name": "FEDORA-2023-597f13ffb9",
            "refsource": "FEDORA",
            "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FNO4ZZUPGAEUXKQL4G2HRIH7CUZKPCT6/"
          },
          {
            "name": "FEDORA-2023-8682a0e17d",
            "refsource": "FEDORA",
            "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BFMYDIONVWATY7EB6EARDVXT47AYCRNM/"
          },
          {
            "name": "FEDORA-2023-44daa9c1d4",
            "refsource": "FEDORA",
            "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PXNNWHHAPREDM3XJDACYRTK7DBMUONBI/"
          }
        ]
      },
      "source": {
        "advisory": "GHSA-q3wr-qw3g-3p4h",
        "discovery": "UNKNOWN"
      }
    },
    "github.com/rubysec/ruby-advisory-db": {
      "cve": "2020-26298",
      "cvss_v3": 6.8,
      "date": "2021-01-11",
      "description": "Redcarpet is a Ruby library for Markdown processing. In Redcarpet before\nversion 3.5.1, there is an injection vulnerability which can enable a cross-site\nscripting attack. In affected versions no HTML escaping was being performed when\nprocessing quotes. This applies even when the `:escape_html` option was being used.\n",
      "gem": "redcarpet",
      "ghsa": "q3wr-qw3g-3p4h",
      "patched_versions": [
        "\u003e= 3.5.1"
      ],
      "related": {
        "url": [
          "https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-security"
        ]
      },
      "title": "Injection/XSS in Redcarpet",
      "url": "https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793"
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003c3.5.1",
          "affected_versions": "All versions before 3.5.1",
          "cvss_v2": "AV:N/AC:M/Au:N/C:N/I:P/A:N",
          "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
          "cwe_ids": [
            "CWE-1035",
            "CWE-74",
            "CWE-79",
            "CWE-937"
          ],
          "date": "2021-01-16",
          "description": "In Redcarpet there is an injection vulnerability which can enable a cross-site scripting attack. This applies even when the `:escape_html` option was being used.",
          "fixed_versions": [
            "3.5.1"
          ],
          "identifier": "CVE-2020-26298",
          "identifiers": [
            "CVE-2020-26298",
            "GHSA-q3wr-qw3g-3p4h"
          ],
          "not_impacted": "All versions starting from 3.5.1",
          "package_slug": "gem/redcarpet",
          "pubdate": "2021-01-11",
          "solution": "Upgrade to version 3.5.1 or above.",
          "title": "Cross-site Scripting",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2020-26298"
          ],
          "uuid": "56f92ad4-5011-4d9c-bc60-0e136c6cba22"
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:redcarpet_project:redcarpet:*:*:*:*:*:ruby:*:*",
                "cpe_name": [],
                "versionEndExcluding": "3.5.1",
                "vulnerable": true
              }
            ],
            "operator": "OR"
          },
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*",
                "cpe_name": [],
                "vulnerable": true
              },
              {
                "cpe23Uri": "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
                "cpe_name": [],
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "security-advisories@github.com",
          "ID": "CVE-2020-26298"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "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."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "CWE-79"
                },
                {
                  "lang": "en",
                  "value": "CWE-74"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793",
              "refsource": "MISC",
              "tags": [
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793"
            },
            {
              "name": "https://rubygems.org/gems/redcarpet",
              "refsource": "MISC",
              "tags": [
                "Product",
                "Third Party Advisory"
              ],
              "url": "https://rubygems.org/gems/redcarpet"
            },
            {
              "name": "https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-security",
              "refsource": "MISC",
              "tags": [
                "Release Notes",
                "Third Party Advisory"
              ],
              "url": "https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-security"
            },
            {
              "name": "https://github.com/advisories/GHSA-q3wr-qw3g-3p4h",
              "refsource": "CONFIRM",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://github.com/advisories/GHSA-q3wr-qw3g-3p4h"
            },
            {
              "name": "[debian-lts-announce] 20210115 [SECURITY] [DLA 2526-1] ruby-redcarpet security update",
              "refsource": "MLIST",
              "tags": [
                "Mailing List",
                "Third Party Advisory"
              ],
              "url": "https://lists.debian.org/debian-lts-announce/2021/01/msg00014.html"
            },
            {
              "name": "DSA-4831",
              "refsource": "DEBIAN",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://www.debian.org/security/2021/dsa-4831"
            },
            {
              "name": "FEDORA-2023-597f13ffb9",
              "refsource": "FEDORA",
              "tags": [],
              "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FNO4ZZUPGAEUXKQL4G2HRIH7CUZKPCT6/"
            },
            {
              "name": "FEDORA-2023-44daa9c1d4",
              "refsource": "FEDORA",
              "tags": [],
              "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PXNNWHHAPREDM3XJDACYRTK7DBMUONBI/"
            },
            {
              "name": "FEDORA-2023-8682a0e17d",
              "refsource": "FEDORA",
              "tags": [],
              "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BFMYDIONVWATY7EB6EARDVXT47AYCRNM/"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV2": {
          "acInsufInfo": false,
          "cvssV2": {
            "accessComplexity": "MEDIUM",
            "accessVector": "NETWORK",
            "authentication": "SINGLE",
            "availabilityImpact": "NONE",
            "baseScore": 3.5,
            "confidentialityImpact": "NONE",
            "integrityImpact": "PARTIAL",
            "vectorString": "AV:N/AC:M/Au:S/C:N/I:P/A:N",
            "version": "2.0"
          },
          "exploitabilityScore": 6.8,
          "impactScore": 2.9,
          "obtainAllPrivilege": false,
          "obtainOtherPrivilege": false,
          "obtainUserPrivilege": false,
          "severity": "LOW",
          "userInteractionRequired": true
        },
        "baseMetricV3": {
          "cvssV3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "NONE",
            "baseScore": 5.4,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "LOW",
            "integrityImpact": "LOW",
            "privilegesRequired": "LOW",
            "scope": "CHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
            "version": "3.1"
          },
          "exploitabilityScore": 2.3,
          "impactScore": 2.7
        }
      },
      "lastModifiedDate": "2023-05-09T04:15Z",
      "publishedDate": "2021-01-11T19:15Z"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…