# CVE-2026-112951: ApostropheCMS: Color field validation bypass allows stored XSS via HTML appended after rgb()/hsl() prefix

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-20T15:33:09.945Z
- Modified: 2026-10-21T17:15:08.647Z
- Also known as: GHSA-vmgj-9cwm-cf3h
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- apostrophecms apostrophe: < 4.34.0
- apostrophe (npm): before 4.34.0

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-vmgj-9cwm-cf3h> (exploit, web)
- <https://github.com/apostrophecms/apostrophe/commit/06e4b377f3c360f9e89c32dccd7e505ad5ddf498> (web)
- <https://github.com/apostrophecms/apostrophe/commit/40b989b1a9dd23d30029b8ce7668634265cfe5ea> (web)
- <https://github.com/apostrophecms/apostrophe/releases/tag/apostrophe@4.34.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112951> (advisory)
- <https://github.com/apostrophecms/apostrophe> (package)

## Sources

- CVE List: [CVE-2026-112951](https://www.cve.org/CVERecord?id=CVE-2026-112951), CVE Terms of Use, modified 2026-10-20
- GitHub Advisory Database: [GHSA-vmgj-9cwm-cf3h](https://github.com/advisories/GHSA-vmgj-9cwm-cf3h), CC-BY-4.0, modified 2026-10-21
- NVD: [CVE-2026-112951](https://nvd.nist.gov/vuln/detail/CVE-2026-112951), Public domain, modified 2026-10-20

---

Page: https://cve.day/CVE-2026-112951 · Whole record: https://cve.day/CVE-2026-112951.json · Rebuilt by cve.day 2026-11-25T22:59:46.062Z
