CVE-2024-52588: @strapi/admin Strapi Allows Server-Side Request Forgery Vulnerability
MODERATECVE-2024-52588 is a MODERATE (CVSS 4.9) strapi allows server-side request forgery vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting @strapi/admin libraries in the npm ecosystem. The issue involves strapi allows server-side request forgery in webhook function. Remediation is available by upgrading affected packages to version 4.25.2.
CVE-2024-52588 at a Glance
Security Impact
CVSS: 4.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2024-52588
To remediate this vulnerability, upgrade all affected @strapi/admin dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @strapi/admin@4.25.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @strapi/admin
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-52588, inspect your project dependencies using npm:
npm ls @strapi/admin
Analyze the terminal output to locate any version of @strapi/admin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.25.2), your application is affected.
Note: The npm ls @strapi/admin command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In @strapi/admin, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-52588 Affected @strapi/admin Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@strapi/admin
|
npm |
< 4.25.2
|
4.25.2
|
References
Frequently Asked Questions
What is CVE-2024-52588?
Which @strapi/admin versions are affected?
What version fixes CVE-2024-52588?
Is @strapi/admin affected?
What is the CVSS score of CVE-2024-52588?
What CWE is associated with CVE-2024-52588?
How can I check npm dependencies for CVE-2024-52588?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v8wj-f5c7-pvxf",
"modified" : "2025-05-29T21:03:02Z",
"published" : "2025-05-27T17:59:52Z",
"aliases" : [ "CVE-2024-52588" ],
"summary" : "Strapi allows Server-Side Request Forgery in Webhook function",
"details" : "## Description\nIn 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)`.\n\n\n## Payloads\n- `http://127.0.0.1:80` -> `The Port is not open`\n- `http://127.0.0.1:1337` -> `The Port which Strapi is running on`\n\n\n## Steps to Reproduce\n- First of all, let's input the URL `http://127.0.0.1:80` into the `URL` field, and click \"Save\".\n\n\n\n\n\n- Next, use the \"Trigger\" function and use Burp Suite to capture the request / response\n\n\n\n\n\n- 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`\n\n\n\n\n\n- Continue to click the \"Trigger\" function, use Burp to capture the request / response\n\n\n\n\n\n- The server returns `Method Not Allowed`, which means that there actually is a `Port 1337` running the machine.\n\n\n## PoC\nHere is the Poc Video, please check: \n\nhttps://drive.google.com/file/d/1EvVp9lMpYnGLmUyr16gQ_2RetI-GqYjV/view?usp=sharing\n\n## Impact\n\n- 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@strapi/admin"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.25.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/strapi/strapi/security/advisories/GHSA-v8wj-f5c7-pvxf"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-52588"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/strapi/strapi"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-05-27T17:59:52Z",
"nvd_published_at" : "2025-05-29T09:15:25Z"
}
}