CVE-2023-22621: Authenticated Server-Side Template Injection in Strapi Email Templates
- Vendor
- Strapi
CVE-2023-22621 is a server-side template injection vulnerability in Strapi email templates affecting versions through 4.5.5. An authenticated attacker with sufficient admin-panel access can insert a crafted template payload that bypasses validation intended to prevent code execution. When Strapi renders the malicious template using lodash template processing, attacker-controlled JavaScript executes on the server. The vulnerability involves the Users-Permissions plugin and related email functionality and was fixed in version 4.5.6.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits arbitrary server-side code and command execution with the privileges of the Strapi process. This can compromise application data, configuration secrets, and other resources accessible to that process. Chaining the vulnerability with CVE-2023-22894 can enable administrator account takeover followed by remote code execution; operating-system privilege escalation or container escape requires additional weaknesses or privileges.
Mitigation
If you can’t patch tonight, do this now.
Until upgrading, restrict admin-panel access to trusted administrators and systems. Monitor requests that modify Users-Permissions email templates, and inspect current templates and database backups for unexpected lodash template delimiters containing JavaScript. Investigate unauthorized template changes for associated code execution and post-exploitation activity.
Remediation
Patch, then assume compromise.
Upgrade Strapi and the affected @strapi/plugin-email and @strapi/plugin-users-permissions packages to version 4.5.6 or later. If CVE-2023-22894 is also present, upgrade to a supported release incorporating its fix, introduced in Strapi 4.8.0, to address the documented account-takeover-to-code-execution chain.
Exploits
1 exploit validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2023-22621 exploited in the wild?
- Yes. As of Nov 4, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2023-22621?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2023-22621, the earliest disclosed Apr 25, 2023.
- Is there a patch for CVE-2023-22621?
- Upgrade Strapi and the affected @strapi/plugin-email and @strapi/plugin-users-permissions packages to version 4.5.6 or later. If CVE-2023-22894 is also present, upgrade to a supported release incorporating its fix, introduced in Strapi 4.8.0, to address the documented account-takeover-to-code-execution chain.
- What products are affected by CVE-2023-22621?
- Strapi.
- How severe is CVE-2023-22621?
- CVE-2023-22621 has a CVSS v3.1 score of 7.2 (High) and an EPSS score of 70.6% (99th percentile) as of Nov 4, 2026.
Recent activity
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.