CVE-2025-23204 – api-platform/core
Package
Manager: composer
Name: api-platform/core
Vulnerable Version: >=3.3.8 <3.3.15
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N
CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:H/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
EPSS: 0.00089 pctl0.26275
Details
API Platform Core does not call GraphQl securityAfterResolver ### Summary A security check that gets called after GraphQl resolvers is always replaced by another one as there's no break in this clause: https://github.com/api-platform/core/pull/6444/files#diff-09e3c2cfe12a2ce65bd6c983c7ca6bfcf783f852b8d0554bb938e8ebf5e5fa65R56 https://github.com/soyuka/core/blob/7e2e8f9ff322ac5f6eb5f65baf432bffdca0fd51/src/Symfony/Security/State/AccessCheckerProvider.php#L49-L57 ### PoC Create a graphql endpoint with a security after resolver. ### Impact As this fallsback to `security`, the impact is there only when there's only a security after resolver and none inside security. The test at https://github.com/api-platform/core/pull/6444 is probably broken.
Metadata
Created: 2025-03-24T16:31:08Z
Modified: 2025-03-24T18:41:25Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-7mxx-3cgm-xxv3/GHSA-7mxx-3cgm-xxv3.json
CWE IDs: ["CWE-20", "CWE-484"]
Alternative ID: GHSA-7mxx-3cgm-xxv3
Finding: F184
Auto approve: 1