CVE-2026-112951
CVE-2026-112951 · ApostropheCMS: Color field validation bypass allows stored XSS via HTML appended after rgb()/hsl() prefix
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 5.4 · Medium · EPSS 0.3% · Public exploit · Fix available
- Published
- Updated
Stack: node
Affected products and versions
apostrophe
- Versions
- < 4.34.0: Affected
No fix published
apostrophe npm
- Affected ranges
- SEMVER: < 4.34.0
Update to 4.34.0
Original sources
- https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-vmgj-9cwm-cf3h
- https://github.com/apostrophecms/apostrophe/commit/06e4b377f3c360f9e89c32dccd7e505ad5ddf498
- https://github.com/apostrophecms/apostrophe/commit/40b989b1a9dd23d30029b8ce7668634265cfe5ea
- https://github.com/apostrophecms/apostrophe/releases/tag/[email protected]
- https://nvd.nist.gov/vuln/detail/CVE-2026-112951