CVE-2026-112951 ApostropheCMS: Color field validation bypass allows stored XSS via HTML appended after rgb()/hsl() prefix
MediumCVSS 5.4
EPSS 0.30%
- Published
- Updated
- Exploit status
- No public exploit known
Description
ApostropheCMS is an open-source Node.js content management system. Prior to 4.34.0, the color field accepts trailing content after a valid rgb() or hsl() prefix because its TinyColor validation does not require the entire value to match a color. An authenticated user with edit rights can store arbitrary HTML after a valid color prefix. When the stored value is rendered, the payload executes, resulting in stored XSS. This issue is fixed in version 4.34.0.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| apostrophecms apostrophe | = < 4.34.0 | No fix listed |
| npm apostrophe(npm) | < 4.34.0 | 4.34.0 |
References
- https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-vmgj-9cwm-cf3h exploit vendor-advisory
- https://github.com/apostrophecms/apostrophe/commit/06e4b377f3c360f9e89c32dccd7e505ad5ddf498 patch
- https://github.com/apostrophecms/apostrophe/commit/40b989b1a9dd23d30029b8ce7668634265cfe5ea patch
- https://github.com/apostrophecms/apostrophe/releases/tag/apostrophe@4.34.0
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product