CVE-2026-112951: ApostropheCMS Color Field Validation Bypass Leading to Stored XSS

apostrophe Updated 21 Oct 2026

Summary

21/10/2026
Yes i
Moderate
5.4

CVE-2026-112951: The color field accepts any string that *begins* with a valid rgb() / hsl() color, because TinyColor.isValid does not anchor its match at the end of the string. Affects apostrophe versions < 4.34.0. Fixed in 4.34.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

ApostropheCMS is a content management system designed for building websites and applications with a focus on usability and flexibility. It allows users to create and manage content easily, providing features such as in-context editing, media management, and customizable workflows. However, a vulnerability exists in its color field validation, which can be exploited to execute arbitrary HTML and JavaScript code.

Vulnerability Detail

The vulnerability arises from the color field's acceptance of any string that begins with a valid rgb() or hsl() color format. The validation mechanism, relying on TinyColor, does not properly anchor its match at the end of the string. This oversight allows an authenticated user with edit rights to append arbitrary HTML after a valid color prefix, leading to stored cross-site scripting (XSS) when the stored value is rendered. The implications of this vulnerability are significant, as it enables attackers to execute malicious scripts in the browsers of visitors and administrators, potentially leading to session hijacking and unauthorized actions.

How To Fix

Minimum fixed version

4.34.0

This is the first release that contains the fix.

npm install apostrophe@4.34.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can manually validate color inputs to ensure they do not contain any additional HTML or JavaScript. However, this is not a complete solution and should not replace the necessary update to the patched version.

Conclusion

The ApostropheCMS vulnerability CVE-2026-112951 presents a significant risk due to its potential for stored XSS attacks. It is crucial for users to update to the patched version 4.34.0 or later and implement proper validation of color inputs to mitigate this risk.

See every vulnerability recorded for apostrophe →

Share this vulnerability

FAQ

The vulnerability allows for stored XSS due to improper validation of color field inputs in ApostropheCMS.

Any authenticated user with edit permissions can exploit this vulnerability.

The vulnerability can lead to session hijacking and unauthorized actions performed as an administrator.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application using the Vulert playground at Vulert Scanner.

The CVSS score of this vulnerability is 5.4, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for apostrophe.

How To Fix

Minimum fixed version

4.34.0

This is the first release that contains the fix.

npm install apostrophe@4.34.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback