GHSA-q3wr-qw3g-3p4h

Suggest an improvement
Source
https://github.com/advisories/GHSA-q3wr-qw3g-3p4h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/01/GHSA-q3wr-qw3g-3p4h/GHSA-q3wr-qw3g-3p4h.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-q3wr-qw3g-3p4h
Aliases
Published
2021-01-11T19:06:10Z
Modified
2024-02-21T05:25:44.686149Z
Severity
  • 6.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N CVSS Calculator
Summary
Injection/XSS in Redcarpet
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
{
    "nvd_published_at": "2021-01-11T19:15:00Z",
    "cwe_ids": [
        "CWE-74",
        "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2021-01-11T19:05:42Z"
}
References

Affected packages

RubyGems / redcarpet

Package

Name
redcarpet
Purl
pkg:gem/redcarpet

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.5.1

Affected versions

1.*

1.0.0
1.0.1
1.1.0
1.1.1
1.2.0
1.2.1
1.2.2
1.3.0
1.3.1
1.3.2
1.3.3
1.5.0
1.5.1
1.5.2
1.5.3
1.6.0
1.7.0
1.7.1
1.8.0
1.8.1
1.8.2
1.9.0
1.10.0
1.10.1
1.11.0
1.11.1
1.11.2
1.11.3
1.11.4
1.12.0
1.12.1
1.12.2
1.13.0
1.13.1
1.13.2
1.14.0
1.14.1
1.14.2
1.15.0
1.15.1
1.15.2
1.16.0
1.17.0
1.17.1
1.17.2

2.*

2.0.0b
2.0.0b3
2.0.0b4
2.0.0b5
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.3.0

3.*

3.0.0
3.1.0
3.1.1
3.1.2
3.2.0
3.2.1
3.2.2
3.2.3
3.3.0
3.3.1
3.3.2
3.3.3
3.3.4
3.4.0
3.5.0