Vulnerabilities in pkg:npm/@strapi/plugin-content-manager
PACKAGECVE-2024-29181 is a LOW (CVSS 2.3) @strapi/plugin-content-manager leaks data vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting @strapi/plugin content manager libraries in the npm ecosystem. The issue involves @strapi/plugin-content-manager leaks data via relations via the admin panel. Remediation is available by upgrading affected packages to version 4.19.1.
pkg:npm/@strapi/plugin-content-manager
Vulnerability advisories affecting package pkg:npm/@strapi/plugin-content-manager. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-6j89-frxc-q26m | CVE-2024-29181 | LOW | @strapi/plugin-content-manager leaks data via relations via the Admin Panel |
| GHSA-m284-85mf-cgrc | CVE-2023-37263 | MODERATE | Strapi's field level permissions not being respected in relationship title |
| GHSA-v8gg-4mq2-88q4 | CVE-2023-36472 | MODERATE | Strapi may leak sensitive user information, user reset password, tokens via content-manager views |
CVE-2024-29181 at a Glance
Security Impact
CVSS: 2.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N).
How to Fix CVE-2024-29181
To remediate this vulnerability, upgrade all affected @strapi/plugin content manager 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-manager@4.19.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @strapi/plugin-content-manager
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-29181, inspect your project dependencies using npm:
npm ls @strapi/plugin-content-manager
Analyze the terminal output to locate any version of @strapi/plugin content manager in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.19.1), your application is affected.
Note: The npm ls @strapi/plugin-content-manager 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-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In @strapi/plugin content manager, 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-2024-29181 Affected @strapi/plugin content manager Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@strapi/plugin-content-manager
|
npm |
< 4.19.1
|
4.19.1
|
References
Frequently Asked Questions
What is CVE-2024-29181?
Which @strapi/plugin content manager versions are affected?
What version fixes CVE-2024-29181?
Is @strapi/plugin-content-manager affected?
What is the CVSS score of CVE-2024-29181?
What CWE is associated with CVE-2024-29181?
How can I check npm dependencies for CVE-2024-29181?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6j89-frxc-q26m",
"modified" : "2024-06-12T19:38:02Z",
"published" : "2024-06-12T19:38:01Z",
"aliases" : [ "CVE-2024-29181" ],
"summary" : "@strapi/plugin-content-manager leaks data via relations via the Admin Panel",
"details" : "### Summary\n1. If a super admin creates a collection where an item in the collection has an association to another collection, a user with the Author Role can see the list of associated items they did not create. They should only see their own items that they created, not all items ever created.\n\n### Details\nAt the top level every collection shows blank items for an Author if they did not create the item. This is ideal and works great. However if you associate one private collection to another private collection and an Author creates a new item. The pull down should not show the admins list of previously created items. It should be blank unitl they add their own items.\n\n### PoC\n1. Sign in as Admin. Navigate to content creation.\n2. Select a collection and verify you have items you created there. And that they have associations to other protected collections.\n3. Verify role permissions for your collections are set to CRUD if user created.\n4. Log out and sign in as a unrelated Author.\n5. Navigate to content management and verify you see collections built by admin but empty for you (as expected)\n6. Create a new item as an Author and see the card appear with attributes to fill out.\n7. Use the form pull down for the associations.\n8. Notice that protected collection items from Admin appear in drop down. These should be hidden\n\n### Impact\nSecurity vulnerability where authors have access to protected data created by admin. This could be passwords emails or any other item created for the admin's collection. \n\nSee images below for more context\n\nPermissions set\n\n\nGood at top level no items seen\n\n\nDrop down in Author login can see Admin data\n\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@strapi/plugin-content-manager"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.19.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/strapi/strapi/security/advisories/GHSA-6j89-frxc-q26m"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-29181"
}, {
"type" : "WEB",
"url" : "https://github.com/strapi/strapi/commit/e1dfd4d9f1cab25cf6da3614c1975e4e508e01c6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/strapi/strapi"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-639" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-06-12T19:38:01Z",
"nvd_published_at" : "2024-06-12T15:15:50Z"
}
}