Quick answers
- Is CVE-2023-39345 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2023-39345 being exploited in the wild.
- How severe is CVE-2023-39345?
- Low severity, with a CVSS score of 3.1, published 3 November 2023.
- Which products and versions are affected?
- @strapi/plugin-users-permissions (npm) SEMVER:introduced=4.0.0,fixed=4.13.1; @strapi/strapi (npm) SEMVER:introduced=4.0.0,fixed=4.13.1; Strapi Plugin-Users-Permissions 4.0.0 to 4.13.0.
- Is there a fix for CVE-2023-39345?
- Yes. @strapi/plugin-users-permissions (npm): upgrade to 4.13.1 or later; @strapi/strapi (npm): upgrade to 4.13.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2023-39345 attacked?
- It is attacked from the adjacent network.
- Am I affected by CVE-2023-39345?
- Check whether you run @strapi/plugin-users-permissions (npm), @strapi/strapi (npm) or Strapi Plugin-Users-Permissions at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- @strapi/plugin-users-permissions (npm): upgrade to 4.13.1 or later
npm install @strapi/plugin-users-permissions@4.13.1 - @strapi/strapi (npm): upgrade to 4.13.1 or later
npm install @strapi/strapi@4.13.1
Technical details
The vulnerability is an authorization bypass in the user registration endpoint of Strapi's users-permissions plugin. The sanitizeInput function, used to filter request payloads during user registration, failed to filter out fields marked as private in the content-type schema. An unauthenticated attacker could send a POST request to the registration API with additional fields in the request body, and any private fields would be written to the database without validation. The attack requires network access to the registration endpoint but no authentication or special privileges. Patches were released in version 4.13.1 for both @strapi/plugin-users-permissions and @strapi/strapi.
Affected products
- Strapi plugin-users-permissions 4.0.0 to 4.13.0
- Strapi Strapi 4.0.0 to 4.13.0
Identifiers
- CVE-2023-39345
- GHSA-gc7p-j5xm-xxh2
Timeline
- 2023-11-03: disclosed: Security advisory published
- 2023-11-03: patched: Version 4.13.1 released with fix