Vulnerabilities in pkg:npm/strapi-plugin-content-type-builder

PACKAGE
Advisory Identifier: GHSA-4p55-xj37-fx7g
Advisory Summary

CVE-2020-27665 is a HIGH (CVSS 7.5) improper authorization vulnerability (CWE-276: Incorrect Default Permissions) affecting Strapi plugin content type builder libraries in the npm ecosystem. The issue involves improper authorization in strapi. Remediation is available by upgrading affected packages to version 3.2.5.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/strapi-plugin-content-type-builder

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/strapi-plugin-content-type-builder. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-4p55-xj37-fx7g CVE-2020-27665 HIGH Improper Authorization in Strapi

CVE-2020-27665 at a Glance

CVE Identifier CVE-2020-27665
GHSA Identifier GHSA-4p55-xj37-fx7g
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-276: Incorrect Default Permissions
Affected Product Strapi plugin content type builder
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2020-27665

To remediate this vulnerability, upgrade all affected Strapi plugin content type builder dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

strapi-plugin-content-type-builder fixed: 3.2.5
npm install strapi-plugin-content-type-builder@3.2.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls strapi-plugin-content-type-builder

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2020-27665, inspect your project dependencies using npm:

npm ls strapi-plugin-content-type-builder

Analyze the terminal output to locate any version of Strapi plugin content type builder in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.5), your application is affected.

Note: The npm ls strapi-plugin-content-type-builder command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-276: Incorrect Default Permissions, where during installation, installed file permissions are set to allow anyone to modify those files. In Strapi plugin content type builder, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

In Strapi before 3.2.5, there is no `admin::hasPermissions` restriction for CTB (aka content-type-builder) routes.

CVE-2020-27665 Affected Strapi plugin content type builder Versions

1 component(s)
Fixed Versions:
3.2.5
Product / Package Ecosystem Affected Versions Fixed Version
strapi-plugin-content-type-builder
npm
< 3.2.5
3.2.5

References

Frequently Asked Questions

What is CVE-2020-27665?
CVE-2020-27665 is a security vulnerability in Strapi plugin content type builder involving Improper Authorization in Strapi under CWE-276: Incorrect Default Permissions.
Which Strapi plugin content type builder versions are affected?
Affected versions include releases prior to 3.2.5 across affected packages: strapi-plugin-content-type-builder.
What version fixes CVE-2020-27665?
Upgrading to 3.2.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is strapi-plugin-content-type-builder affected?
Yes, strapi-plugin-content-type-builder is affected in releases prior to 3.2.5. Upgrade your dependency to 3.2.5 or later.
What is the CVSS score of CVE-2020-27665?
CVE-2020-27665 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2020-27665?
CVE-2020-27665 is classified under CWE-276: Incorrect Default Permissions (During installation, installed file permissions are set to allow anyone to modify those files.).
How can I check npm dependencies for CVE-2020-27665?
Run the dependency tree command: 'npm ls strapi-plugin-content-type-builder'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4p55-xj37-fx7g",
  "modified" : "2023-09-13T19:30:47Z",
  "published" : "2020-10-29T18:29:31Z",
  "aliases" : [ "CVE-2020-27665" ],
  "summary" : "Improper Authorization in Strapi",
  "details" : "In Strapi before 3.2.5, there is no `admin::hasPermissions` restriction for CTB (aka content-type-builder) routes.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "strapi-plugin-content-type-builder"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.2.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-27665"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/strapi/strapi/pull/8439"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/strapi/strapi/commit/3cdd73987950d5c7976701047b38203e902007bb"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/strapi/strapi/releases/tag/v3.2.5"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JS-STRAPIPLUGINCONTENTTYPEBUILDER-1021616"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-276" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-10-29T16:25:47Z",
    "nvd_published_at" : null
  }
}