CVE-2023-34093: Strapi content-type attribute disclosure via extension

CVE-2023-34093 · Severity: low · CVSS 3.1 · Published 2023-07-25

Strapi is an open-source headless CMS that manages content types and their attributes. A flaw in how Strapi handles content-type extension allows developers or plugins to inadvertently remove access restrictions from sensitive fields, causing private attributes to become publicly accessible. This can expose sensitive data such as password hashes or enable unauthorized system access.

Technologies: @strapi/strapi (npm), @strapi/utils (npm). Vendors: npm.

Quick answers

Is CVE-2023-34093 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2023-34093 being exploited in the wild.
How severe is CVE-2023-34093?
Low severity, with a CVSS score of 3.1, published 25 July 2023.
Which products and versions are affected?
@strapi/database (npm) SEMVER:introduced=0,fixed=4.10.8; @strapi/strapi (npm) SEMVER:introduced=0,fixed=4.10.8; @strapi/utils (npm) SEMVER:introduced=0,fixed=4.10.8.
Is there a fix for CVE-2023-34093?
Yes. @strapi/database (npm): upgrade to 4.10.8 or later; @strapi/strapi (npm): upgrade to 4.10.8 or later; @strapi/utils (npm): upgrade to 4.10.8 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2023-34093 attacked?
It is attacked over the network.
Am I affected by CVE-2023-34093?
Check whether you run @strapi/database (npm), @strapi/strapi (npm) or @strapi/utils (npm) 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/database (npm): upgrade to 4.10.8 or later
    npm install @strapi/database@4.10.8
  • @strapi/strapi (npm): upgrade to 4.10.8 or later
    npm install @strapi/strapi@4.10.8
  • @strapi/utils (npm): upgrade to 4.10.8 or later
    npm install @strapi/utils@4.10.8

Technical details

The vulnerability is an information disclosure (CWE-200) in Strapi's content-type handling. When extending a content-type via strapi.container.get('content-types').extend(), copying the content-type object removes the privateAttributes getter, causing all attributes to be treated as public during sanitization. An attacker with admin-level access can extend content-types at runtime (e.g., in bootstrap functions) to expose private fields. No user interaction is required once the malicious extension is deployed. The vulnerability affects @strapi/strapi, @strapi/utils, and @strapi/database versions prior to 4.10.8, which introduced fixes to preserve attribute access controls.

Affected products

  • Strapi strapi < 4.10.8
  • Strapi utils < 4.10.8
  • Strapi database < 4.10.8

Identifiers

  • CVE-2023-34093
  • GHSA-chmr-rg2f-9jmf

Timeline

  • 2023-07-25: disclosed
  • 2023-07-25: patched: Fixed in version 4.10.8

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.