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-6r5g
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWhmajQtOTZmNy02cjVn
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 5 years ago
Updated: 8 months 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: Repository: https://github.com/guardian/html-janitor
Blast Radius: 15.1

Affected Packages

npm:html-janitor
Dependent packages: 56
Dependent repositories: 302
Downloads: 94,938 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