# Donation Thermometer <= 2.2.11 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'colorramp' Shortcode Attribute

- **ID:** WPSEC-2026-0659
- **Plugin:** Donation Thermometer (`donation-thermometer`), https://wordpress.org/plugins/donation-thermometer/
- **Affected versions:** from 2.2.9 before 2.3.0
- **Fixed in:** 2.3.0 (Update to 2.3.0 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (as of 2026-10-08)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/donation-thermometer
- **Fix released:** 2026-10-07
- **Published:** 2026-10-08
- **URL:** https://wpsec.com/vuln/WPSEC-2026-0659/

## Description

The Donation Thermometer plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'colorramp' attribute of the [thermometer] shortcode in versions 2.2.9 up to, and including, 2.2.11 due to insufficient input sanitization and output escaping. Each colour was output without escaping into an attribute of the thermometer legend. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

## References

- https://wpsec.com/vuln/WPSEC-2026-0659/
- https://plugins.svn.wordpress.org/donation-thermometer/tags/2.3.0/
- https://wordpress.org/plugins/donation-thermometer/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-0659/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
