Patchfirst
CVE-2023-22621 Public exploit Critical · 10.0 EPSS 70.6%

Strapi through 4.5.5 allows authenticated Server-Side Template Injection (SSTI) that can be exploited to execute…

Fix:upgrade plugin-users-permissions and plugin-email Versions ↓

Summary

Strapi through 4.5.5, a headless CMS, contains a Server-Side Template Injection flaw in its email template functionality, where crafted input is rendered without proper neutralisation. An attacker who can reach the Strapi admin panel with valid credentials can submit a payload into an email template that bypasses the intended validation checks and executes arbitrary code on the server.

Official description · CVE.org

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.

Breakdown
73.0 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 3 years after disclosure. Public exploit code (PoC-in-GitHub) appeared 6 days after disclosure.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+6 days
  3. First seen exploitedVulnCheck KEV evidence+3 yrs

4 fixes in @strapi/plugin-users-permissions over 7 months. The latest fix listed for @strapi/plugin-users-permissions is 4.13.1.

Fixes in @strapi/plugin-users-permissionsnpm package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 4.5.6CVE-2023-2262119 Apr 2023
  2. 4.6.0CVE-2023-2289319 Apr 2023
  3. 4.12.1CVE-2023-3850715 Sep 2023
  4. 4.13.1CVE-2023-393456 Nov 2023Latest listed

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

2 packages in 1 ecosystem. No single main package: each of these ships the affected code.

  • npm@strapi/plugin-users-permissions
    Affected: All versions before 4.5.6Upgrade to 4.6.0 or later
  • npm@strapi/plugin-email
    Affected: All versions before 4.5.6Upgrade to 4.5.6 or later

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 2 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

3 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close