{"id":"CVE-2024-52588","aliases":["CVE-2024-52588","GHSA-v8wj-f5c7-pvxf"],"related":[],"kind":"vulnerability","state":"published","title":"Strapi allows Server-Side Request Forgery in Webhook function","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## 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![CleanShot 2024-06-04 at 22 45 17@2x](https://github.com/strapi/strapi/assets/71650574/7336b817-cb61-41e6-9b3f-87151d8667e9)\n\n\n- Next, use the \"Trigger\" function and use Burp Suite to capture the request / response\n\n\n![CleanShot 2024-06-04 at 22 47 50@2x](https://github.com/strapi/strapi/assets/71650574/659f1bbe-6b03-456c-a9c2-5187fca20dd6)\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![CleanShot 2024-06-04 at 22 50 13@2x](https://github.com/strapi/strapi/assets/71650574/a7916c86-1923-49ed-bd43-a70fa00d41e9)\n\n\n- Continue to click the \"Trigger\" function, use Burp to capture the request / response\n\n\n![CleanShot 2024-06-04 at 22 53 25@2x](https://github.com/strapi/strapi/assets/71650574/6fc51bb7-5a66-4b2b-b24f-2eba45ba1db9)\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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Strapi es un sistema de gestión de contenido de código abierto. Antes de la versión 4.25.2, introducir un dominio local en el campo URL de Webhooks provocaba que la aplicación se recuperara a sí misma, lo que resultaba en un server side request forgery (SSRF). Este problema se ha corregido en la versión 4.25.2.","source":"nvd"}],"published":"2025-05-27T17:59:52.000Z","modified":"2026-06-17T08:07:30.200Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":"< 4.25.2","status":"affected"}],"vendor":"strapi","product":"strapi","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.25.2"}],"ecosystem":"npm","package":"@strapi/admin","purl":"pkg:npm/%40strapi/admin","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.25.2"}],"vendor":"strapi","product":"strapi","cpe":"cpe:2.3:a:strapi:strapi:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/strapi/strapi/security/advisories/GHSA-v8wj-f5c7-pvxf","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52588","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/strapi/strapi","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-05-29T13:44:22.019Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-52588","url":"https://www.cve.org/CVERecord?id=CVE-2024-52588","licence":"CVE Terms of Use","modified":"2025-05-29T13:44:40.528Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v8wj-f5c7-pvxf","url":"https://github.com/advisories/GHSA-v8wj-f5c7-pvxf","licence":"CC-BY-4.0","modified":"2025-05-29T21:03:02.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-52588","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52588","licence":"Public domain","modified":"2026-06-17T08:07:30.200Z"}],"updatedAt":"2026-11-25T22:58:52.704Z","epss":{"score":0.00596,"percentile":0.4986,"date":"2026-12-01T12:00:22.000Z"}}