Post Snippets <= 4.0.19 - Authenticated (Administrator+) Stored Cross-Site Scripting via Import

4.4
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2026-7430
CVSS 4.4 (Medium)
Publicly Published May 28, 2026
Last Updated May 29, 2026
Researcher a1batr0ss

Description

The Post Snippets plugin for WordPress is vulnerable to Stored Cross-Site Scripting in all versions up to, and including, 4.0.19. This is due to insufficient output escaping of imported snippet content when rendering JavaScript variables in the post editor. Specifically, the `jqueryUiDialog()` method in `WPEditor.php` embeds snippet content directly into JavaScript string literals without escaping double quotes (the quote-escaping code on line 214 is commented out). When snippets are imported via the Import/Export feature, the content bypasses WordPress's `wp_magic_quotes()` (which would otherwise add protective backslashes), allowing double quotes in snippet content to break out of the JavaScript string context. This makes it possible for authenticated attackers, with Administrator-level access and above, to inject arbitrary web scripts via a malicious import file that execute whenever any administrator accesses a post editor page. Please note that this does not affect single-site installations as administrators already have the `unfiltered_html` capability.

Learn more about Cross-Site Scripting vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for Post Snippets – Custom WordPress Code Snippets Customizer

Software Type Plugin
Software Slug post-snippets (view on wordpress.org)
Patched? Yes
Remediation Update to version 4.1.1, or a newer patched version
Affected Version
  • <= 4.0.19
Patched Version
  • 4.1.1

Recent vulnerabilities in Post Snippets – Custom WordPress Code Snippets Customizer

# Title CVE ID CVSS Researchers Date
1 Post Snippets – Custom WordPress Code Snippets Customizer <= 4.0.19 - Authenticated (Contributor+) Remote Code Execution CVE-2026-56049 8.8 daroo June 25, 2026
2 Post Snippets – Custom WordPress Code Snippets Customizer <= 4.0.12 - Authenticated (Contributor+) Remote Code Execution CVE-2026-25001 8.8 Doan Dinh Van (d52v) March 16, 2026
3 Post Snippets <= 4.0.11 - Cross-Site Request Forgery CVE-2025-63040 4.3 Nabil Irawan December 31, 2025
4 Freemius SDK <= 2.5.9 - Reflected Cross-Site Scripting via fs_request_get CVE-2023-33999 6.1 Rafie Muhammad July 18, 2023
5 Post Snippets <= 4.0.2 - Authenticated (Administrator+) Stored Cross-Site Scripting via 'snippet_content' CVE-2023-25459 4.4 Abdi Pranata May 9, 2023
6 Freemius SDK <= 2.4.2 - Missing Authorization Checks CVE-2022-4974 6.3 March 4, 2022
7 Post Snippets <= 3.1.3 - Cross-Site Request Forgery to Stored Cross-Site Scripting CVE-2021-25010 9.6 Muhammad Adel January 31, 2022
8 Freemius SDK <= 2.2.3 - Missing Authorization to Arbitrary Options Update 8.8 February 25, 2019

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation