CVE-2024-13895: The The Code Snippets CPT plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions
CVE-2024-13895 is a medium-severity flaw (CVSS 4.3) affecting code snippets cpt. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
The The Code Snippets CPT plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 2.1.0. This is due to the software allowing users to execute an action that does not properly validate a value before running do_shortcode. This makes it possible for authenticated attackers, with Subscriber-level access and above, to execute arbitrary shortcodes.
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 4.3 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.3% (top 79%) |
| CISA exploited list | No |
| Weakness | CWE-94 |
| Published | 2025-03-08 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-13895?
code snippets cpt: upgrade to newer than 2.1.0. Exact commands for each OS are on this page.
Is CVE-2024-13895 being exploited?
CVE-2024-13895 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-13895 affect?
CVE-2024-13895 affects code snippets cpt. Severity is medium (CVSS 4.3). The The Code Snippets CPT plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 2.1.0. This is due to the software allowing users to execute an action that does not properly validate a val
How urgent is CVE-2024-13895?
Priority 20/100. No elevated risk signals yet.