CVE-2024-52588: Strapi allows Server-Side Request Forgery in Webhook function

Published May 27, 2025
·
Updated

Description In Strapi latest version, at function Settings -> Webhooks, the application allows us to input a URL in order to create a Webook connection. However, we can input into this field the local domains such as localhost, 127.0.0.1, 0.0.0.0,.... in order to make the Application fetching into the internal itself, which causes the vulnerability Server - Side Request Forgery (SSRF).

Payloads - http://127.0.0.1:80 -> The Port is not open - http://127.0.0.1:1337 -> The Port which Strapi is running on

Steps to Reproduce - First of all, let's input the URL http://127.0.0.1:80 into the URL field, and click "Save".

!CleanShot 2024-06-04 at 22 45 17@2x

- Next, use the "Trigger" function and use Burp Suite to capture the request / response

!CleanShot 2024-06-04 at 22 47 50@2x

- The server return request to http://127.0.0.1/ failed, reason: connect ECONNREFUSED 127.0.0.1:80, BECAUSE the Port 80 is not open, since we are running Strapi on Port 1337, let's change the URL we input above into http://127.0.0.1:1337

!CleanShot 2024-06-04 at 22 50 13@2x

- Continue to click the "Trigger" function, use Burp to capture the request / response

!CleanShot 2024-06-04 at 22 53 25@2x

- The server returns Method Not Allowed, which means that there actually is a Port 1337 running the machine.

PoC Here is the Poc Video, please check:

https://drive.google.com/file/d/1EvVp9lMpYnGLmUyr16gQ2RetI-GqYjV/view?usp=sharing

Impact

- If there is a real server running Strapi with many ports open, by using this SSRF vulnerability, the attacker can brute-force through all 65535 ports to know what ports are open.

Other sources

Strapi is an open-source content management system. Prior to version 4.25.2, inputting a local domain into the Webhooks URL field leads to the application fetching itself, resulting in a server side request forgery (SSRF). This issue has been patched in version 4.25.2.

MITRE

Affected Software

2 affected componentsFixes available
npm/@strapi/admin<4.25.2
4.25.2
Strapi Strapi<4.25.2

Event History

May 27, 2025
Advisory Published
via GitHub·05:59 PM
May 29, 2025
CVE Published
via MITRE·09:02 AM
Data Sourced
via MITRE·09:02 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 AM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-52588?

CVE-2024-52588 is considered a medium severity vulnerability that allows local domains to be utilized for webhook connections.

2

How do I fix CVE-2024-52588?

To fix CVE-2024-52588, upgrade to the latest version of Strapi, specifically to version 4.25.2 or later.

3

What kind of systems are affected by CVE-2024-52588?

CVE-2024-52588 affects Strapi applications that allow webhook configurations without validation on the input URL.

4

What impact does CVE-2024-52588 have on Strapi applications?

CVE-2024-52588 may lead to unauthorized access and data exposure due to improper handling of local domain URLs in webhook settings.

5

Are there any workarounds for CVE-2024-52588?

While an explicit workaround is not documented, it is advisable to avoid using localhost or other local domains in webhook configurations until the vulnerability is patched.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203