Vulnerabilities in pkg:npm/strapi-plugin-content-type-builder
PACKAGECVE-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.
pkg:npm/strapi-plugin-content-type-builder
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
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).
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.
npm install strapi-plugin-content-type-builder@3.2.5
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
CVE-2020-27665 Affected Strapi plugin content type builder Versions
1 component(s)| 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?
Which Strapi plugin content type builder versions are affected?
What version fixes CVE-2020-27665?
Is strapi-plugin-content-type-builder affected?
What is the CVSS score of CVE-2020-27665?
What CWE is associated with CVE-2020-27665?
How can I check npm dependencies for CVE-2020-27665?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}