# Kirki <= 6.4.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via Link 'href' in Converted Post Content

- **ID:** WPSEC-2026-4096
- **Plugin:** Kirki – Freeform Page Builder, Website Builder & Customizer (`kirki`), https://wordpress.org/plugins/kirki/
- **Affected versions:** from 6.0.0 before 6.4.4
- **Fixed in:** 6.4.4 (Update to 6.4.4 or later.)
- **Severity:** Medium 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-27)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/kirki
- **Fix released:** 2026-11-26
- **Published:** 2026-11-27
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4096/

## Description

The Kirki plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the href of Link Text elements in versions 6.0.0 up to, and including, 6.4.3, due to the link URL being written unescaped into a single-quoted href attribute. When an editor or administrator converts a post to Kirki, the post's links are copied into Kirki element data with their single quotes intact. This makes it possible for authenticated attackers, with contributor-level access and above, to place a link in a post that injects arbitrary web scripts once the post is converted; they execute whenever a user accesses the converted page.

## References

- https://wpsec.com/vuln/WPSEC-2026-4096/
- https://plugins.svn.wordpress.org/kirki/tags/6.4.4/
- https://wordpress.org/plugins/kirki/

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

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.
