# Open Graphite <= 1.7.1 - Authenticated (Author+) Stored Cross-Site Scripting via Custom Image Field

- **ID:** WPSEC-2026-1312
- **Plugin:** Open Graphite (`open-graphite`), https://wordpress.org/plugins/open-graphite/
- **Affected versions:** all versions before 2.0.0
- **Fixed in:** 2.0.0 (Update to 2.0.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-21)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/open-graphite
- **Fix released:** 2026-10-20
- **Published:** 2026-10-21
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1312/

## Description

The Open Graphite plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the '_custom_image' post meta field in all versions up to, and including, 1.7.1. The value is saved with sanitize_text_field, which keeps double quotes, and is then echoed without escaping into the src and value attributes of the Open Graphite metabox. This makes it possible for authenticated attackers with author-level access and above to inject arbitrary web scripts that execute when an editor or administrator opens the post in the editor.

## References

- https://wpsec.com/vuln/WPSEC-2026-1312/
- https://plugins.svn.wordpress.org/open-graphite/tags/2.0.0/
- https://wordpress.org/plugins/open-graphite/

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

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.
