GHSA-2hpc-mf4q-j885: Silverstripe/framework Silverstripe CSRF Vulnerability Vulnerability
MODERATEGHSA-2hpc-mf4q-j885 is a MODERATE (CVSS 4.3) silverstripe csrf vulnerability vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Silverstripe/framework libraries in the Packagist ecosystem. The issue involves silverstripe csrf vulnerability in gridfieldaddexistingautocompleter. Remediation is available by upgrading affected packages to version 3.1.17, 3.2.2, 3.3.0.
GHSA-2hpc-mf4q-j885 at a Glance
Security Impact
CVSS: 4.3
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:R/S:U/C:N/I:L/A:N).
How to Fix GHSA-2hpc-mf4q-j885
To remediate this vulnerability, upgrade all affected Silverstripe/framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade silverstripe/framework to 3.1.17
Upgrade silverstripe/framework to 3.2.2
Upgrade silverstripe/framework to 3.3.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for silverstripe/framework
How to Check if You Are Affected
To determine whether your application is affected by GHSA-2hpc-mf4q-j885, inspect your project dependencies for Silverstripe/framework:
inspect dependencies for silverstripe/framework
Analyze the terminal output to locate any version of Silverstripe/framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.17), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Silverstripe/framework, 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
GHSA-2hpc-mf4q-j885 Affected Silverstripe/framework Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
silverstripe/framework
|
Packagist |
< 3.1.17
|
3.1.17
|
|
silverstripe/framework
|
Packagist |
≥ 3.2.0
< 3.2.2
|
3.2.2
|
|
silverstripe/framework
|
Packagist |
≥ 3.3.0-beta1
< 3.3.0
|
3.3.0
|
References
Frequently Asked Questions
What is GHSA-2hpc-mf4q-j885?
Which Silverstripe/framework versions are affected?
What version fixes GHSA-2hpc-mf4q-j885?
Is silverstripe/framework affected?
What is the CVSS score of GHSA-2hpc-mf4q-j885?
What CWE is associated with GHSA-2hpc-mf4q-j885?
How can I check Packagist dependencies for GHSA-2hpc-mf4q-j885?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2hpc-mf4q-j885",
"modified" : "2024-05-23T19:19:33Z",
"published" : "2024-05-23T19:19:33Z",
"aliases" : [ ],
"summary" : "Silverstripe CSRF vulnerability in GridFieldAddExistingAutocompleter",
"details" : "GridField does not have sufficient CSRF protection, meaning that in some cases users with CMS access can be tricked into posting unspecified data into the CMS from external websites. Amongst other default CMS interfaces, GridField is used for management of groups, users and permissions in the CMS.\n\nThe resolution for this issue is to ensure that all gridFieldAlterAction submissions are checked for the SecurityID token during submission.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.1.17"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.1.16"
}
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.2.0"
}, {
"fixed" : "3.2.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.2.1"
}
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.3.0-beta1"
}, {
"fixed" : "3.3.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.3.0-rc2"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/silverstripe/silverstripe-framework/commit/013524af5069bb0cf909853f04418d9bef56d18c"
}, {
"type" : "WEB",
"url" : "https://github.com/silverstripe/silverstripe-framework/commit/56e92f5a32e45849cc9361c8603c31d7010c9d36"
}, {
"type" : "WEB",
"url" : "https://github.com/silverstripe/silverstripe-framework/commit/e2c77c5a8f13e901c51a3684210811559b592f0c"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2016-002-1.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/silverstripe/silverstripe-framework"
}, {
"type" : "WEB",
"url" : "https://www.silverstripe.org/download/security-releases/ss-2016-002"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-23T19:19:33Z",
"nvd_published_at" : null
}
}