Approved changes feed: RSS · Atom

cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:*

part: a version: * update: *

VendorApostrophecms (01c46484-782b-5ecd-aa32-4c843388532a)
ProductSanitize Html (5d0b621c-4be0-575c-93f9-a35767a17c1d)
Edition*
Language*
Software edition*
Target softwarenode.js
Target hardware*
Other*
NotesImported from gcve-enriched-dumps CVE data

PURL mappings

PURLSourceLast updated
No PURL mappings for this CPE yet.

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2026-40186 vulnerable 2026-06-08 08:01:20.021433 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
CVE:CVE-2024-21501 vulnerable 2026-06-08 06:27:35.436435 Details available
MEDIUM (5.3)
Versions of the package sanitize-html before 2.12.1 are vulnerable to Information Exposure when used on the backend and with the style attribute allowed, allowing enumeration of files in the system (including project dependencies). An attacker could exploit this vulnerability to gather details about the file system structure and dependencies of the targeted server.
Published: 2024-02-24T05:00:02.731Z
Updated: 2025-02-13T17:33:15.082Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2022-25887 vulnerable 2026-06-08 05:41:49.625096 Regular Expression Denial of Service (ReDoS)
MEDIUM (5.3)
The package sanitize-html before 2.7.1 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure global regular expression replacement logic of HTML comment removal.
Published: 2022-08-30T05:00:20.149Z
Updated: 2024-09-17T03:07:00.082Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2021-26540 vulnerable 2026-06-08 05:30:44.823786 Details available
Apostrophe Technologies sanitize-html before 2.3.2 does not properly validate the hostnames set by the "allowedIframeHostnames" option when the "allowIframeRelativeUrls" is set to true, which allows attackers to bypass hostname whitelist for iframe element, related using an src value that starts with "/\\example.com".
Published: 2021-02-08T16:16:07.000Z
Updated: 2024-08-03T20:26:25.388Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2021-26539 vulnerable 2026-06-08 05:30:44.823358 Details available
Apostrophe Technologies sanitize-html before 2.3.1 does not properly handle internationalized domain name (IDN) which could allow an attacker to bypass hostname whitelist validation set by the "allowedIframeHostnames" option.
Published: 2021-02-08T16:16:06.000Z
Updated: 2024-08-03T20:26:25.401Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2019-25225 vulnerable 2026-06-08 05:13:42.089012 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data
CVE:CVE-2016-1000237 vulnerable 2026-06-08 05:07:16.925384 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data
CVE:CVE-2014-125128 vulnerable 2026-06-08 05:05:15.884329 db.gcve.eu details were skipped to keep the page responsive. 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.