LiveActive security incident?Get immediate response
CVE Record

CVE-2017-0931: html-janitor node module suffers from a Cross-Site Scripting (XSS) vulnerability via clean() accepting user...

html-janitor node module suffers from a Cross-Site Scripting (XSS) vulnerability via clean() accepting user-controlled values.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2017-0931 describes a cross-site scripting flaw in the html-janitor Node module. If an application uses clean() to sanitize user-controlled HTML, malicious content may survive filtering and run in a user's browser. The provided sources list all versions as affected, but do not provide CVSS, confirmed exploitation, or a named fix.

Executive priority

Treat this as a targeted dependency risk. Prioritize review if the business accepts user-generated HTML, manages customer portals, or renders sanitized content for authenticated users. Do not assume breach activity from the provided sources.

Technical view

The issue is CWE-79 in html-janitor's clean() processing of user-controlled values. The affected package is identified as the html-janitor Node module, all versions. Source evidence does not include vulnerable code details, exploit prerequisites, patch identifiers, or safe-version guidance.

Likely exposure

Exposure is likely limited to applications that include html-janitor and pass untrusted or user-generated HTML through clean() before rendering it in a browser.

Exploitation context

The bundle does not show CISA KEV listing or any cited evidence of active exploitation. Public references indicate an XSS report and GitHub issue, but the provided evidence is incomplete on exploit reliability and impact scope.

Researcher notes

The source bundle is thin: no CVSS vector, no patch record, and no exploit status. Validate package presence and data flow first. Any severity escalation should depend on reachable clean() usage, user privileges, stored rendering, and session sensitivity.

Mitigation direction

  • Inventory applications using the html-janitor Node module.
  • Check vendor or project guidance for patched versions or replacement recommendations.
  • Avoid relying on clean() alone for untrusted HTML until guidance is confirmed.
  • Add output encoding and browser-side controls where applicable.
  • Review stored user-generated HTML for unsafe content exposure.

Validation and detection

  • Search dependency manifests for html-janitor usage.
  • Identify code paths calling clean() on user-controlled input.
  • Confirm whether sanitized content is rendered as HTML in browsers.
  • Check whether affected applications expose stored or reflected user content.
  • Document compensating controls and remaining unsupported assumptions.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-79: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2017-0931 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
HackerOnehtml-janitor node moduleAll versionsListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-79 · source CWE mapping

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.