Stored cross-site scripting in Post Snippets WordPress plugin
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
The Post Snippets WordPress plugin by saadiqbal is vulnerable to stored cross-site scripting via shortcode attributes in all versions up to and including 4.2.4. The plugin's shortcode filter converts entity-encoded payloads back into executable HTML at render time, after WordPress's wp_kses_post on-save sanitization has let them through (CWE-79). An authenticated attacker with contributor-level access or above can inject scripts that execute whenever a user accesses an injected page. The flaw requires snippet shortcodes to be enabled.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
Description from the CNA
The Post Snippets – Custom WordPress Code Snippets Customizer plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Shortcode Attributes in all versions up to, and including, 4.2.4 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Entity-encoded payloads such as <script>...</script> survive WordPress's wp_kses_post on-save sanitization because kses does not decode HTML entities, and are only converted back into executable HTML tags at render time by the plugin's own shortcode filter. This requires snippet shortcodes to be enabled.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
The sources list no fixed version for Post Snippets (Custom WordPress Code Snippets Customizer).
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
Timeline
- 2026-10-28 Threatist record created from CVE-2026-77871
- 2026-10-28 Alias added: GHSA-6hh4-5cgj-w743
- 2026-10-28 Priority changed: MEDIUM → LOW
- 2026-10-29 CISA SSVC decision points changed
References
Other 10
- https://www.wordfence.com/threat-intel/vulnerabilities/id/a46c37f4-245d-423f-bdad-296fdf377ecc?source=cve
- https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.2.3/src/PostSnippets/Shortcode.php#L183
- https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.2.4/src/PostSnippets/Shortcode.php#L183
- https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.2.4/src/PostSnippets/Shortcode.php#L140
- https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.2.4/src/PostSnippets/Shortcode.php#L70
- https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.2.4/src/PostSnippets/Shortcode.php#L29
- https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.2.3/src/PostSnippets/Shortcode.php#L140
- https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.2.3/src/PostSnippets/Shortcode.php#L70
- https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.2.3/src/PostSnippets/Shortcode.php#L29
- https://plugins.trac.wordpress.org/changeset/3759640/post-snippets/trunk/src/PostSnippets/Shortcode.php
More saadiqbal vulnerabilities
- TI-2025-10849 Missing authorization in saadiqbal Post SMTP – Complete Email Deliverability and SMTP… CVSS 3.1CRITICAL 9.8
- TI-2024-29006 WordPress myCred plugin <= 2.7.2 - PHP Object Injection vulnerability CVSS 3.1CRITICAL 9.8
- TI-2025-36263 WordPress All In One Login plugin <= 2.0.8 - Bypass Vulnerability vulnerability CVSS 3.1CRITICAL 9.1
- TI-2026-05814 WPFormify <= 1.1.1 - Missing Authorization CVSS 3.1HIGH 8.2
- TI-2025-42518 WordPress New User Approve plugin <= 3.2.0 - Broken Access Control vulnerability CVSS 3.1HIGH 8.6
- TI-2024-35074 WordPress User Management plugin <= 1.1 - Arbitrary File Upload vulnerability CVSS 3.1CRITICAL 9.9
Sources
- CVE-2026-77871 · CVE Program
- CVE-2026-77871 · NVD
- FIRST EPSS
- GHSA-6hh4-5cgj-w743 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences