xhtml-purifier

Ecosystem: npm

Downloads:

Vulnerabilities from the last (months)
  • 0CriticalAffects 0 versions
  • 0HighAffects 0 versions
  • 0MediumAffects 0 versions
  • 1ModerateAffects 1 version
  • 0LowAffects 0 versions
Severity distribution (all time)
1vulnerability
  • Critical0 (0.0%)
  • High0 (0.0%)
  • Medium0 (0.0%)
  • Moderate1 (100.0%)
  • Low0 (0.0%)

Monthly breakdown

  • 1 vulnerabilities
    • Critical: 0
    • High: 0
    • Medium: 0
    • Moderate: 1
    • Low: 0

Vulnerabilities (1)

Known vulnerabilities affecting xhtml-purifier, based on data from OSV.

Vulnerabilities affecting xhtml-purifier
IDSeveritySummaryAffected versionsPublishedSource
GHSA-j8r4-32c5-33rcModeratexhtml-purifier has HTML attribute-injection (sanitizer bypass) that leads to XSSxhtml-purifier does not HTML-entity-encode attribute values when serializing its sanitized output. In attributeString() (XHTMLPurifier.js, around line 148) the attribute value is concatenated directly into a double-quoted attribute without encoding. As a result, an attacker-controlled value in any allowed attribute (class, style, title, alt, src, href) can include a double-quote character to break out of the attribute and inject an additional attribute, such as a JavaScript event handler (for example onmouseover or onerror). The injected handler survives sanitization and executes when the outp
  • < 0.4.3
GitHub (opens in a new tab)
  • GHSA-j8r4-32c5-33rcModerate
    xhtml-purifier has HTML attribute-injection (sanitizer bypass) that leads to XSS
    • < 0.4.3

    xhtml-purifier does not HTML-entity-encode attribute values when serializing its sanitized output. In attributeString() (XHTMLPurifier.js, around line 148) the attribute value is concatenated directly into a double-quoted attribute without encoding. As a result, an attacker-controlled value in any allowed attribute (class, style, title, alt, src, href) can include a double-quote character to break out of the attribute and inject an additional attribute, such as a JavaScript event handler (for example onmouseover or onerror). The injected handler survives sanitization and executes when the outp

    CVE: CVE-2026-61784

Showing 1-1 of 1 vulnerabilities