Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2023-22621: Authenticated Server-Side Template Injection in Strapi Email Templates

Published Apr 19, 2023 · Updated 18 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.2High · v3.1
EPSS70.6%99th percentile
CISA KEVNoNot listed
In the wildReported2 exploitation records in Mallory
Vendor
Strapi
IdentifiersCVE-2023-22621CWE-1336

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Exposure surface

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.

VendorProductType
StrapiStrapiapplication
FAQ

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.
Activity feed

Recent activity

6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware1Malware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.