Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWhmajQtOTZmNy02cjVn
Cross-Site Scripting in html-janitor
Versions of html-janitor
prior to 2.0.2 (all current versions) are vulnerable to cross-site scripting (XSS).
This is exploitable if user-controlled data is passed into the modules clean()
function.
Recommendation
No fix is currently available for this vulnerability. It is recommended to use an alternative module for HTML sanitization.
Permalink: https://github.com/advisories/GHSA-hfj4-96f7-6r5gJSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWhmajQtOTZmNy02cjVn
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: about 6 years ago
Updated: about 1 year ago
CVSS Score: 6.1
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Identifiers: GHSA-hfj4-96f7-6r5g, CVE-2017-0931
References:
- https://nvd.nist.gov/vuln/detail/CVE-2017-0931
- https://github.com/guardian/html-janitor/issues/34
- https://hackerone.com/reports/308155
- https://github.com/advisories/GHSA-hfj4-96f7-6r5g
- https://www.npmjs.com/advisories/576
Blast Radius: 15.1
Affected Packages
npm:html-janitor
Dependent packages: 56Dependent repositories: 302
Downloads: 117,384 last month
Affected Version Ranges: < 2.0.3
Fixed in: 2.0.3
All affected versions: 0.2.0, 0.3.1, 0.3.2, 1.0.0, 1.0.1, 1.1.0, 2.0.0, 2.0.1, 2.0.2
All unaffected versions: 2.0.4