Skip to content

Post Snippets – Custom WordPress Code Snippets Customizer

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

CVE-2026-7430Published 29 May 2026, 02:27 UTC

Real-world risk

0.2/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

4.4

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from Wordfence)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
Post Snippets – Custom WordPress Code Snippets CustomizerNiche<= 4.0.19—

What to do

Check the vendor advisory in the references below for fixed versions and workarounds.

Why this score

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededHighAdmin or equivalentFrom the CVSS vector0.20
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.2% chance of exploitation in 30 days (percentile 17), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.090
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.3 × prerequisites 0.09 × threat 0.850.230
  4. Rounded to one decimal between 0.1 and 100.2

How the score works

Exploitation and evidence timeline

  1. 29 May 2026 Published
  2. 3 Dec 2026 Risk 0.2 (cvss fallback)

Weakness

CWE-79

References

Get alerts for Post Snippets – Custom WordPress Code Snippets Customizer

Free email or text alerts when a vulnerability in Post Snippets – Custom WordPress Code Snippets Customizer reaches risk 8 or higher. Nothing else.