CVE-2026-33889 ApostropheCMS: Stored XSS via CSS Custom Property Injection in `@apostrophecms/color-field` Escaping Style Tag Context
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
Description
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 <style> 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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| apostrophecms | < 4.29.0 | 4.29.0 | Fixed |
| npm apostrophe(npm) | < 4.29.0 | 4.29.0 | Fixed |
| apostrophecms apostrophe | = < 4.29.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| apostrophecms apostrophe | = < 4.29.0 | No fix listed |
| npm apostrophe(npm) | < 4.29.0 | 4.29.0 |
| apostrophecms | < 4.29.0 | 4.29.0 |
References
- https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-97v6-998m-fp4g exploit mitigation vendor-advisory
- https://github.com/apostrophecms/apostrophe/commit/6a89bdb7acdb2e1e9bf1429961a6ba7f99410481 patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product