GHSA-fx46-whrj-73v5

Suggest an improvement
Source
https://github.com/advisories/GHSA-fx46-whrj-73v5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/07/GHSA-fx46-whrj-73v5/GHSA-fx46-whrj-73v5.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-fx46-whrj-73v5
Aliases
Published
2018-07-24T20:06:17Z
Modified
2023-11-08T03:58:41Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Bypassing Sanitization using DOM clobbering in html-janitor
Details

All versions of html-janitor are vulnerable to cross-site scripting (XSS).

Arbitrary HTML can pass the sanitization process, which can be unexpected and dangerous (XSS) in case user-controlled input is passed to the clean function."

Recommendation

Upgrade to version 2.0.4 or later.

Database specific
{
    "cwe_ids":  [
        "CWE-547",
        "CWE-642"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2020-06-16T21:35:41Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

npm / html-janitor

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Database specific

last_known_affected_version_range
"< 2.0.4"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/07/GHSA-fx46-whrj-73v5/GHSA-fx46-whrj-73v5.json"