Vulnerability Description
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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.2.3/src/PostSnip
- https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.2.3/src/PostSnip
- https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.2.3/src/PostSnip
- https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.2.3/src/PostSnip
- https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.2.4/src/PostSnip
- https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.2.4/src/PostSnip
- https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.2.4/src/PostSnip
- https://plugins.trac.wordpress.org/browser/post-snippets/tags/4.2.4/src/PostSnip
- https://plugins.trac.wordpress.org/changeset/3759640/post-snippets/trunk/src/Pos
- https://www.wordfence.com/threat-intel/vulnerabilities/id/a46c37f4-245d-423f-bda
FAQ
What is CVE-2026-77871?
CVE-2026-77871 is a vulnerability with a CVSS score of 6.4 (MEDIUM). 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...
How severe is CVE-2026-77871?
CVE-2026-77871 has been rated MEDIUM with a CVSS base score of 6.4/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-77871?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.