# CVE-2023-39345: Strapi authorization bypass in user registration API

Source: https://junglewise.ai/threats/cve-2023-39345-strapi-authorization-bypass-in-user-registration-api  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-11-03. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2023-39345 · Severity: low · CVSS 3.1 · Published 2023-11-03

Strapi is a popular headless CMS platform that uses role-based access control to protect sensitive user fields. A flaw in the user registration API allowed unauthenticated attackers to write data to fields marked as private during account signup, bypassing the intended access restrictions. This could enable attackers to modify sensitive user attributes or system configuration fields they should not access.

Technologies: [@strapi/plugin-users-permissions (npm)](https://junglewise.ai/threats/technologies/strapi-plugin-users-permissions), [@strapi/strapi (npm)](https://junglewise.ai/threats/technologies/strapi-strapi), [Strapi Plugin-Users-Permissions](https://junglewise.ai/threats/technologies/plugin-users-permissions). Vendors: [npm](https://junglewise.ai/threats/vendors/npm), [Strapi](https://junglewise.ai/threats/vendors/strapi).

## 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

  ```sh
  npm install @strapi/plugin-users-permissions@4.13.1
  ```

- @strapi/strapi (npm): upgrade to 4.13.1 or later

  ```sh
  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

## References

- [https://github.com/strapi/strapi/security/advisories/GHSA-gc7p-j5xm-xxh2](https://github.com/strapi/strapi/security/advisories/GHSA-gc7p-j5xm-xxh2)

## Related threats

- [Strapi administrative account takeover via relational query filtering](https://junglewise.ai/threats/cve-2026-27886-strapi-administrative-account-takeover-via-relational-query)
- [Strapi insufficient session invalidation during password reset](https://junglewise.ai/threats/cve-2026-22706-strapi-insufficient-session-invalidation-during-password-reset)
- [Strapi users-permissions plugin rate limit bypass in auth routes](https://junglewise.ai/threats/cve-2025-64526-strapi-users-permissions-plugin-rate-limit-bypass-in-auth-routes)
- [Strapi insufficient session expiration in JWT authentication](https://junglewise.ai/threats/cve-2025-3930-strapi-insufficient-session-expiration-in-jwt-authentication)
- [Strapi Server-Side Request Forgery](https://junglewise.ai/threats/cve-2024-37818-strapi-server-side-request-forgery)
