GHSA-c3gv-9cxf-6f57

Suggest an improvement
Source
https://github.com/advisories/GHSA-c3gv-9cxf-6f57
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/11/GHSA-c3gv-9cxf-6f57/GHSA-c3gv-9cxf-6f57.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-c3gv-9cxf-6f57
Aliases
Published
2019-11-05T23:58:25Z
Modified
2024-02-16T08:24:36.818396Z
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
Loofah Allows Cross-site Scripting
Details

In the Loofah gem for Ruby through v2.3.0, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.

Database specific
{
    "nvd_published_at": "2019-10-22T21:15:00Z",
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2019-10-24T20:44:29Z"
}
References

Affected packages

RubyGems / loofah

Package

Name
loofah
Purl
pkg:gem/loofah

Affected ranges

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

Affected versions

0.*

0.2.0
0.2.1
0.2.2
0.3.0
0.3.1
0.4.0
0.4.1
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7

1.*

1.0.0.beta.1
1.0.0
1.1.0
1.2.0
1.2.1

2.*

2.0.0
2.0.1
2.0.2
2.0.3
2.1.0.rc1
2.1.0.rc2
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0