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.
{ "vanir_signatures": [ { "digest": { "threshold": 0.9, "line_hashes": [ "198197667677715849428623281048180277561", "54830763969004594676731107425085190938", "97811103998125843691871254455650728211", "139603207368515949909553120480638757958", "313289017949240420953274720090354965485" ] }, "id": "CVE-2020-26298-bc2a74b8", "source": "https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793", "signature_type": "Line", "signature_version": "v1", "target": { "file": "ext/redcarpet/html.c" }, "deprecated": false }, { "digest": { "function_hash": "244524669993411248594301671481377802264", "length": 249.0 }, "id": "CVE-2020-26298-ccd1bdea", "source": "https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793", "signature_type": "Function", "signature_version": "v1", "target": { "file": "ext/redcarpet/html.c", "function": "rndr_quote" }, "deprecated": false } ] }