# CVE-2026-7430: Post Snippets WordPress plugin Stored XSS in WPEditor.php

Source: https://junglewise.ai/threats/cve-2026-7430-post-snippets-wordpress-plugin-stored-xss-in-wpeditor-php  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-29. Updated: 2026-05-29  
License: CC BY 4.0 with a link back

CVE-2026-7430 · Severity: medium · CVSS 4.4 · Published 2026-05-29

The Post Snippets plugin for WordPress, which allows users to create and manage reusable content fragments, is vulnerable to a security flaw in its import feature. An attacker with administrative privileges could upload a malicious file that injects harmful scripts into the website's management interface. This could allow the attacker to perform unauthorized actions or steal information when other administrators use the post editor. This issue primarily affects multi-site WordPress installations where administrative permissions are more restricted.

Technologies: [Post Snippets](https://junglewise.ai/threats/technologies/post-snippets). Vendors: [Post Snippets](https://junglewise.ai/threats/vendors/post-snippets).

## Quick answers

**Is CVE-2026-7430 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-7430 being exploited in the wild.

**How severe is CVE-2026-7430?** Medium severity, with a CVSS score of 4.4, published 29 May 2026.

**Which products and versions are affected?** Post Snippets up to, and including, 4.0.19.

**Is there a fix for CVE-2026-7430?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-7430 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-7430?** Check whether you run Post Snippets at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The Post Snippets plugin for WordPress is vulnerable to Stored Cross-Site Scripting (XSS) due to insufficient output escaping in the `jqueryUiDialog()` method within `WPEditor.php`. Specifically, snippet content is embedded directly into JavaScript string literals without escaping double quotes, as the relevant escaping code was commented out. When snippets are imported via the Import/Export feature, they bypass the standard `wp_magic_quotes()` protection. An authenticated attacker with Administrator-level access can exploit this by importing a malicious file containing crafted snippets. These scripts execute in the context of any administrator accessing the post editor. This vulnerability specifically impacts multi-site environments where administrators do not inherently possess the `unfiltered_html` capability. The issue is addressed in version 4.1.1.

## Affected products

- Post Snippets Post Snippets up to, and including, 4.0.19

## Timeline

- 2026-05-29: disclosed
- 2026-05-29: advisory

## References

- [https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.0.19/src/PostSnippets/DBTable.php](https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.0.19/src/PostSnippets/DBTable.php)
- [https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.0.19/src/PostSnippets/WPEditor.php](https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.0.19/src/PostSnippets/WPEditor.php)
- [https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.1.1/src/PostSnippets/WPEditor.php](https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.1.1/src/PostSnippets/WPEditor.php)
- [https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.1.1/src/PostSnippets/WPEditor.php](https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.1.1/src/PostSnippets/WPEditor.php)
- [https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.1.1/src/PostSnippets/WPEditor.php](https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.1.1/src/PostSnippets/WPEditor.php)
- [https://plugins.trac.wordpress.org/browser/post-snippets/trunk/src/PostSnippets/DBTable.php](https://plugins.trac.wordpress.org/browser/post-snippets/trunk/src/PostSnippets/DBTable.php)
- [https://plugins.trac.wordpress.org/browser/post-snippets/trunk/src/PostSnippets/WPEditor.php](https://plugins.trac.wordpress.org/browser/post-snippets/trunk/src/PostSnippets/WPEditor.php)

## Related threats

- [Post Snippets WordPress plugin stored XSS via snippet variables](https://junglewise.ai/threats/cve-2026-12980-the-post-snippets-wordpress-plugin-through-4-2-4-does-not)
- [Post Snippets Remote Code Execution in WordPress Plugin](https://junglewise.ai/threats/cve-2026-56049-post-snippets-remote-code-execution-in-wordpress-plugin)
