CVE-2017-0931 json
Cross-Site Scripting in html-janitor
published 2018-06-04 8 y ago modified 2026-06-17 4 mo ago also GHSA-hfj4-96f7-6r5g , EUVD-2018-0755
- cvss
- 6.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 64%
- public exploits
- 0
- none known
Summary
html-janitor node module suffers from a Cross-Site Scripting (XSS) vulnerability via clean() accepting user-controlled values.
Patch / fix
- npm html-janitor 2.0.3
Exploit prediction
1.05% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/guardian/html-janitor/issues/34 referenced PoC, tagged "exploit" by a source, unverified
- hackerone.com https://hackerone.com/reports/308155 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | html-janitor | <2.0.3 |
2.0.3 |
Affected products
- HackerOne html-janitor node module
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/guardian/html-janitor/issues/34
web, exploit, third-party-advisory
-
hackerone.com
/reports/308155
web, exploit, issue-tracking, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2017-0931
advisory
-
github.com
/advisories/GHSA-hfj4-96f7-6r5g
advisory
-
npmjs.com
/advisories/576
web
Sources
- CVE List CVE-2017-0931
- GitHub Advisory GHSA-hfj4-96f7-6r5g
- NVD CVE-2017-0931
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.