CVE-2023-22621
JavaScript vulnerability analysis and mitigation

Overview

CVE-2023-22621 is a critical Server-Side Template Injection (SSTI) vulnerability discovered in Strapi versions through 4.5.5. The vulnerability allows authenticated users with access to the Strapi admin panel to inject malicious code into email templates that can execute arbitrary code on the server. The vulnerability was discovered in December 2022 and patched in version 4.5.6 (Strapi Blog, NVD).

Technical details

The vulnerability exists in the email template system of the users-permissions plugin. An attacker can bypass the validation checks in the isValidEmailTemplate function by exploiting a flaw in the regex patterns used for template validation. The vulnerability has a CVSS v3.1 Base Score of 7.2 HIGH with vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

If exploited, the vulnerability allows attackers to execute arbitrary code on the server through crafted email templates. When chained with other vulnerabilities like CVE-2023-22894, it could lead to unauthenticated remote code execution on affected Strapi servers (Strapi Blog, GhostCcamm Blog).

Mitigation and workarounds

The primary mitigation is to upgrade to Strapi version 4.5.6 or later. For users unable to upgrade immediately, patch-package patches were made available. Organizations using Strapi 3.x.x versions must upgrade to a patched 4.x.x version as version 3 reached end-of-life on December 31, 2022, and will not receive security updates (Strapi Blog).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65959HIGH8.7
  • JavaScriptJavaScript
  • open-webui
NoYesDec 04, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-65945HIGH7.5
  • JavaScriptJavaScript
  • jws
NoYesDec 04, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 2025
CVE-2025-66479LOW1.8
  • JavaScriptJavaScript
  • @anthropic-ai/sandbox-runtime
NoYesDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management