CVE-2026-33889
published 2026-04-15CVE-2026-33889: ApostropheCMS is an open-source Node.js content management system. Versions 4.28.0 and prior contain a stored cross-site scripting vulnerability in the…
PriorityP426medium5.4CVSS 3.1
AVNACLPRLUIRSCCLILAN
EPSS
0.21%
11.2th percentile
ApostropheCMS is an open-source Node.js content management system. Versions 4.28.0 and prior contain a stored cross-site scripting vulnerability in the @apostrophecms/color-field module, where color values prefixed with -- bypass TinyColor validation intended for CSS custom properties, and the launder.string() call performs only type coercion without stripping HTML metacharacters. These unsanitized values are then concatenated directly into tags both in per-widget style elements rendered for all visitors and in the global stylesheet rendered for editors, with the output marked as safe HTML. An editor can inject a value which closes the style tag and executes arbitrary JavaScript in the browser of every visitor to any page containing the affected widget. This enables mass session hijacking, cookie theft, and privilege escalation to administrative control if an admin views draft content. This issue has been fixed in version 4.29.0.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| apostrophecms | apostrophe | < 4.29.0 | 4.29.0 |
| apostrophecms | apostrophe | >= 0 < 4.29.0 | 4.29.0 |
| apostrophecms | apostrophecms | < 4.29.0 | 4.29.0 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
ApostropheCMS: Stored XSS via CSS Custom Property Injection in @apostrophecms/color-field Escaping Style Tag Context
ghsa·2026-04-16
CVE-2026-33889 [MEDIUM] CWE-79 ApostropheCMS: Stored XSS via CSS Custom Property Injection in @apostrophecms/color-field Escaping Style Tag Context
ApostropheCMS: Stored XSS via CSS Custom Property Injection in @apostrophecms/color-field Escaping Style Tag Context
## Summary
The `@apostrophecms/color-field` module bypasses color validation for values prefixed with `--` (intended for CSS custom properties), but performs no HTML sanitization on these values. When styles containing attacker-controlled color values are rendered into `` tags — both in the global stylesheet (editors only) and in per-widget style elements (all visitors) — the lack of escaping allows an editor to inject `` followed by arbitrary HTML/JavaScript, achieving stored XSS against all site visitors.
## Details
**Root Cause 1: Validation bypass in color field** (`modules/@apostrophecms/color-field/index.js:36`)
The color field's `convert` method uses TinyColor to
VulDB
apostrophe up to 4.28.x launder.string Color cross site scripting (GHSA-97v6-998m-fp4g)
vuldb·2026-04-16·CVSS 5.4
CVE-2026-33889 [MEDIUM] apostrophe up to 4.28.x launder.string Color cross site scripting (GHSA-97v6-998m-fp4g)
A vulnerability classified as problematic was found in apostrophe up to 4.28.x. Affected is the function launder.string. The manipulation of the argument Color results in cross site scripting.
This vulnerability is known as CVE-2026-33889. It is possible to launch the attack remotely. No exploit is available.
Upgrading the affected component is advised.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2026-04-15
Published