CVE-2025-23204: 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…
Published Mar 24, 2025
Affected packages
api-platform/core
- Ecosystem
- Composer (PHP)
- Affected
- >= 3.3.8, < 3.3.15
- Fixed in
- 3.3.15
- Check
composer show api-platform/core
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to soyuka, vinceAmstoutz, ausi.
References
- https://github.com/api-platform/core/security/advisories/GHSA-7mxx-3cgm-xxv3
- https://github.com/api-platform/core/pull/6444
- https://github.com/api-platform/core/pull/6444/files#diff-09e3c2cfe12a2ce65bd6c983c7ca6bfcf783f852b8d0554bb938e8ebf5e5fa65R56
- https://github.com/api-platform/core/commit/dc4fc84ba93e22b4f44a37e90a93c6d079c1c620
- https://github.com/soyuka/core/blob/7e2e8f9ff322ac5f6eb5f65baf432bffdca0fd51/src/Symfony/Security/State/AccessCheckerProvider.php#L49-L57
- https://nvd.nist.gov/vuln/detail/CVE-2025-23204
- https://github.com/advisories/GHSA-7mxx-3cgm-xxv3
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-54164
API Platform Core: Relation IRIs are not type-checked: a related resource can be denormalised as the wrong resource type (type confusion)
medium6.5Aug 7, 2026CVE-2026-49858
API Platform Core vulnerable to cross-user attribute leak in JSON:API and HAL item normalizers due to missing isCacheKeySafe gate
medium5.9Jul 10, 2026CVE-2025-31481
GraphQL query operations security can be bypassed
high7.5Apr 4, 2025CVE-2025-31485
GraphQL grant on a property might be cached with different objects
high7.5Apr 4, 2025CVE-2023-47639
API Platform Core can leak exceptions message that may contain sensitive information
medium5.3Apr 3, 2025
