Post Snippets <= 4.0.19 — Authenticated (Administrator+) Stored Cross-Site Scripting via Import
CVE-2026-7430Published · Updated Action summary
Affected: ≤4.0.19Update to 4.1.1 or newer
All remediation steps- Severity
- Medium4.4
- CVSS
- 4.4CVSS 3.1 · CNA (Wordfence)
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:NWhat does this vector mean?
AV:NAttack vector- Network
AC:HAttack complexity- High
PR:HPrivileges required- High
UI:NUser interaction- None
S:CScope- Changed
C:LConfidentiality- Low
I:LIntegrity- Low
A:NAvailability- None
- Weakness
- CWE-79 Cross-Site Scripting
- Required access
- Unknown
- Exploit prediction (EPSS)
- No score
- CISA KEV
- Not listed
On this page8
Am I affected?
Post Snippets – Custom WordPress Code Snippets Customizer post-snippets
- Affected≤ 4.0.19
- Patched in4.1.1
Update to 4.1.1 or newer.
You are affected if you run ≤ 4.0.19. Version 4.1.1 and later are not affected by this issue.
- Check your version: in wp-admin go to Plugins → Installed Plugins and read the version under Post Snippets – Custom WordPress Code Snippets Customizer.
- No admin access? Run a passive check of your site. It reads public files only.
What to do
- Update to version 4.1.1, or a newer patched version
- Rotate administrator passwords and application secrets if the site ran a vulnerable version while publicly reachable.
- Watch Post Snippets – Custom WordPress Code Snippets Customizer to get an email when the next vulnerability is published.
Advisory
Source description from Wordfence Intelligence, credited to a1batr0ss.
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.
Exploits & references
Proof-of-concept & detection
No public proof-of-concept or detection template is known for this vulnerability.
Advisories & patches
- Advisorywordfence.com
Related CVEs
More in Post Snippets – Custom WordPress Code Snippets Customizer
All 11| Severity | Vulnerability | CVE | Published |
|---|---|---|---|
| Medium6.4 | Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode Attributes ≤4.2.4Update to 4.2.5 | CVE-2026-77871 | |
| Medium6.4 | Authenticated (Contributor+) Stored Cross-Site Scripting ≤4.2.4No patch available | CVE-2026-12980 | |
| High8.8 | Authenticated (Contributor+) Remote Code Execution ≤4.0.19Update to 4.1.0 | CVE-2026-56049 | |
| High8.8 | Authenticated (Contributor+) Remote Code Execution ≤4.0.12Update to 4.0.13 | CVE-2026-25001 | |
| Medium4.3 | Cross-Site Request Forgery ≤4.0.11Update to 4.0.12 | CVE-2025-63040 |
- Medium6.4Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode Attributes
≤4.2.4Update to 4.2.5
- Medium6.4Authenticated (Contributor+) Stored Cross-Site Scripting
≤4.2.4No patch available
- High8.8Authenticated (Contributor+) Remote Code Execution
≤4.0.19Update to 4.1.0
- High8.8Authenticated (Contributor+) Remote Code Execution
≤4.0.12Update to 4.0.13
- Medium4.3Cross-Site Request Forgery
≤4.0.11Update to 4.0.12
Same weakness (Cross-Site Scripting)
All Cross-Site Scripting| Severity | Vulnerability | CVE | Published |
|---|---|---|---|
| High7.2 | Unauthenticated Stored Cross-Site Scripting via Comment User-Agent Header | CVE-2026-120688 | |
| Critical9.8 | Unauthenticated Arbitrary File Upload via File Upload via Public Form Submission | CVE-2026-125055 | |
| Critical9.8 | Unauthenticated PHP Object Injection to Remote Code Execution via 'form' Parameter | CVE-2026-119077 | |
| Medium5.3 | Unauthenticated Sensitive Information Exposure in 'search' Parameter | CVE-2026-121518 |
- High7.2Unauthenticated Stored Cross-Site Scripting via Comment User-Agent Header
EZ SQL Reports Shortcode Widget and DB Backup
≤5.25.25Update to 5.26.45
- Critical9.8Unauthenticated Arbitrary File Upload via File Upload via Public Form Submission
Chatterbug Forms – Fast, Flexible WordPress Form Builder
≤1.0.2Update to 1.1
- Critical9.8Unauthenticated PHP Object Injection to Remote Code Execution via 'form' Parameter
ELEX WordPress HelpDesk & Customer Ticketing System
≤3.3.9Update to 3.4.0
- Medium5.3Unauthenticated Sensitive Information Exposure in 'search' Parameter
Customer Reviews for WooCommerce
≤5.127.0Update to 5.128.0
Timeline
CVE published
Severity medium, CVSS 4.4
Record last updated
Sources & licenses
Wordfence record- Vulnerability data
- Wordfence Intelligence. [object Object] Licensed under the CC BY-SA 4.0.
- CVE® identifiers
- [object Object]. Used under the CVE Program. CVE® is a registered trademark of The MITRE Corporation.
- CVSS / CWE
- National Vulnerability Database (NVD), shown unmodified. This product uses the NVD API but is not endorsed or certified by the NVD.
- VulnCrest content
- Summary, remediation guidance and page layout © VulnCrest. Not sourced from NVD.
