# CVE-2026-33889: ApostropheCMS: Stored XSS via CSS Custom Property Injection in `@apostrophecms/color-field` Escaping Style Tag Context

- 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.23%, higher than 14% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-15T19:29:50.899Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-97v6-998m-fp4g
- 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. 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.

(As written by CVE List.)

## Affected

- apostrophecms apostrophe: < 4.29.0
- apostrophe (npm): before 4.29.0
- apostrophecms apostrophecms: before 4.29.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-97v6-998m-fp4g> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/apostrophecms/apostrophe/commit/6a89bdb7acdb2e1e9bf1429961a6ba7f99410481> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33889> (advisory)
- <https://github.com/apostrophecms/apostrophe> (package)

## Sources

- CVE List: [CVE-2026-33889](https://www.cve.org/CVERecord?id=CVE-2026-33889), CVE Terms of Use, modified 2026-04-16
- GitHub Advisory Database: [GHSA-97v6-998m-fp4g](https://github.com/advisories/GHSA-97v6-998m-fp4g), CC-BY-4.0, modified 2026-04-16
- NVD: [CVE-2026-33889](https://nvd.nist.gov/vuln/detail/CVE-2026-33889), Public domain, modified 2026-10-26

---

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