GHSA-945h-6vcv-pc8h: Sylius/admin bundle Sylius Admin Bundle Cross-Site Request Vulnerability
MODERATEGHSA-945h-6vcv-pc8h is a MODERATE (CVSS 6.5) sylius admin bundle cross-site request vulnerability (General Security Weakness) affecting Sylius/admin bundle libraries in the Packagist ecosystem. The issue involves sylius admin bundle cross-site request forgery vulnerability. Remediation is available by upgrading affected packages to version 1.0.17, 1.1.9, 1.2.2.
GHSA-945h-6vcv-pc8h at a Glance
Security Impact
CVSS: 6.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:R/S:U/C:N/I:H/A:N).
How to Fix GHSA-945h-6vcv-pc8h
To remediate this vulnerability, upgrade all affected Sylius/admin bundle 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 sylius/admin-bundle to 1.0.17
Upgrade sylius/admin-bundle to 1.1.9
Upgrade sylius/admin-bundle to 1.2.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for sylius/admin-bundle
How to Check if You Are Affected
To determine whether your application is affected by GHSA-945h-6vcv-pc8h, inspect your project dependencies for Sylius/admin bundle:
inspect dependencies for sylius/admin-bundle
Analyze the terminal output to locate any version of Sylius/admin bundle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.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 General Security Weakness. In Sylius/admin bundle, 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-945h-6vcv-pc8h Affected Sylius/admin bundle Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sylius/admin-bundle
|
Packagist |
≥ 1.0.0
< 1.0.17
|
1.0.17
|
|
sylius/admin-bundle
|
Packagist |
≥ 1.1.0
< 1.1.9
|
1.1.9
|
|
sylius/admin-bundle
|
Packagist |
≥ 1.2.0
< 1.2.2
|
1.2.2
|
References
Frequently Asked Questions
What is GHSA-945h-6vcv-pc8h?
Which Sylius/admin bundle versions are affected?
What version fixes GHSA-945h-6vcv-pc8h?
Is sylius/admin-bundle affected?
What is the CVSS score of GHSA-945h-6vcv-pc8h?
What CWE is associated with GHSA-945h-6vcv-pc8h?
How can I check Packagist dependencies for GHSA-945h-6vcv-pc8h?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-945h-6vcv-pc8h",
"modified" : "2024-05-29T18:50:26Z",
"published" : "2024-05-29T18:50:26Z",
"aliases" : [ ],
"summary" : "Sylius Admin Bundle Cross-Site Request Forgery vulnerability",
"details" : "Sylius 1.0.0 to 1.0.16, 1.1.0 to 1.1.8, 1.2.0 to 1.2.1 versions of AdminBundle and ResourceBundle are affected by this security issue.\n\nThis issue has been fixed in Sylius 1.0.17, 1.1.9 and 1.2.2. Development branch for 1.3 release has also been fixed.\n\n### Description\n\nThe following actions in the admin panel did not require a CSRF token:\n\n- marking order’s payment as completed\n- marking order’s payment as refunded\n- marking product review as accepted\n- marking product review as rejected\n\n### Resolution\n\nThe issue is fixed by adding a required CSRF token to those actions.\n\nWe also fixed `ResourceController`‘s `applyStateMachineTransitionAction` method by adding a CSRF token check. If you use that action in the API context, you can disable it by adding `csrf_protection:` false to its routing configuration",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "sylius/admin-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "1.0.17"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "sylius/admin-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.1.0"
}, {
"fixed" : "1.1.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "sylius/admin-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.2.0"
}, {
"fixed" : "1.2.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Sylius/SyliusAdminBundle/commit/79c2d963bed61411b1eef15715a74d2d96b91884"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/sylius/admin-bundle/2018-07-09.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Sylius/SyliusAdminBundle"
}, {
"type" : "WEB",
"url" : "https://sylius.com/blog/csrf-vulnerability-in-admin-panel"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-29T18:50:26Z",
"nvd_published_at" : null
}
}