Approved changes feed: RSS · Atom

cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:*:*:*

part: a version: * update: *

VendorApostrophecms (01c46484-782b-5ecd-aa32-4c843388532a)
ProductSanitize Html (5d0b621c-4be0-575c-93f9-a35767a17c1d)
Edition*
Language*
Software edition*
Target software*
Target hardware*
Other*
NotesImported from purl2cpe mapping

PURL mappings

PURLSourceLast updated
pkg:github/apostrophecms/sanitize-html purl2cpe 2026-06-01 10:14:47.626346
pkg:maven/org.webjars.npm/sanitize-html purl2cpe 2026-06-01 10:14:47.626349
pkg:npm/sanitize-html purl2cpe 2026-06-01 10:14:47.626352

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2026-53606 vulnerable 2026-07-29 01:00:27.106527 sanitize-html has an incomplete URI scheme validation that allows javascript: URIs through action, formaction, data, poster, and background attributes
MEDIUM (5.4)
ApostropheCMS is an open-source Node.js content management system, and sanitize-html provides a simple HTML sanitizer with a clear API. Versions of sanitize-html prior to 2.17.5 use `allowedSchemesAppliedToAttributes` (default: `['href', 'src', 'cite']`) to gate the `naughtyHref()` function that blocks dangerous URI schemes like `javascript:` and `vbscript:`. The HTML specification defines 10+ attributes that accept URIs (`action`, `formaction`, `data`, `poster`, `background`, `ping`, `xlink:href`, `dynsrc`, `lowsrc`), but none of these are included in the default gate list. When a developer allows any of these attributes in their configuration, `javascript:` URIs pass through completely unmodified, enabling XSS. Version 2.17.5 patches the issue.
Published: 2026-06-12T20:50:47.085Z
Updated: 2026-06-15T17:54:23.511Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-44990 vulnerable 2026-07-29 00:52:14.981125 Apostrophe has default XSS via `xmp` raw-text passthrough in `sanitize-html`
CRITICAL (9.3)
ApostropheCMS is an open-source Node.js content management system, and sanitize-html provides a simple HTML sanitizer with a clear API. Under the default configuration, versions of `sanitize-html` prior to 2.17.4 can turn attacker-controlled content inside a disallowed `xmp` element into live HTML or JavaScript. This is a sanitizer bypass in the default `disallowedTagsMode: 'discard'` path and can lead to stored XSS in applications that render sanitized output back to users. Version 2.17.4 patches the issue.
Published: 2026-06-12T20:39:47.065Z
Updated: 2026-08-24T12:07:13.587Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-40186 vulnerable 2026-06-08 08:01:20.019513 ApostropheCMS: sanitize-html allowedTags Bypass via Entity-Decoded Text in nonTextTags Elements
MEDIUM (6.1)
ApostropheCMS is an open-source Node.js content management system. A regression introduced in commit 49d0bb7, included in versions 2.17.1 of the ApostropheCMS-maintained sanitize-html package bypasses allowedTags enforcement for text inside nonTextTagsArray elements (textarea and option). ApostropheCMS version 4.28.0 is affected through its dependency on the vulnerable sanitize-html version. The code at packages/sanitize-html/index.js:569-573 incorrectly assumes that htmlparser2 does not decode entities inside these elements and skips escaping, but htmlparser2 10.x does decode entities before passing text to the ontext callback. As a result, entity-encoded HTML is decoded by the parser and then written directly to the output as literal HTML characters, completely bypassing the allowedTags filter. An attacker can inject arbitrary tags including XSS payloads through any allowed option or textarea element using entity encoding. This affects non-default configurations where option or textarea are included in allowedTags, which is common in form builders and CMS platforms. This issue has been fixed in version 2.17.2 of sanitize-html and 4.29.0 of ApostropheCMS.
Published: 2026-04-15T20:15:12.333Z
Updated: 2026-04-16T14:15:41.275Z
Reference links
Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.