CVE-2020-26298

Source
https://cve.org/CVERecord?id=CVE-2020-26298
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2020-26298.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2020-26298
Aliases
Downstream
DEBIAN (1)
OESA (1)
SUSE (2)
Related
Published
2021-01-11T19:15:13Z
Modified
2026-08-18T14:11:30Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
[none]
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.

Database specific
{
    "unresolved_ranges":  [
        {
            "cpes":  [
                "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "9.0"
                },
                {
                    "last_affected":  "9.0"
                },
                {
                    "introduced":  "10.0"
                },
                {
                    "last_affected":  "10.0"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "debian:debian_linux"
        }
    ]
}
References

Affected packages

Git / github.com/vmg/redcarpet

Affected ranges

Type
GIT
Repo
https://github.com/vmg/redcarpet
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:redcarpet_project:redcarpet:*:*:*:*:*:ruby:*:*",
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "fixed":  "3.5.1"
        }
    ],
    "source":  [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

v1.*
v1.17.2
v2.*
v2.0.0
v2.0.1
v2.1.0
v2.1.1
v2.2.0
v2.2.1
v2.2.2
v3.*
v3.0.0
v3.1.1
v3.2.0
v3.3.0
v3.3.1
v3.3.2
v3.3.3
v3.3.4
v3.4.0
v3.5.0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2020-26298.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "198197667677715849428623281048180277561",
                "54830763969004594676731107425085190938",
                "97811103998125843691871254455650728211",
                "139603207368515949909553120480638757958",
                "313289017949240420953274720090354965485"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2020-26298-bc2a74b8",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793",
        "target":  {
            "file":  "ext/redcarpet/html.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "244524669993411248594301671481377802264",
            "length":  249
        },
        "id":  "CVE-2020-26298-ccd1bdea",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793",
        "target":  {
            "file":  "ext/redcarpet/html.c",
            "function":  "rndr_quote"
        }
    }
]
vanir_signatures_modified
"2026-08-18T14:11:30Z"