4.4medium
GraphQl securityAfterResolver not called
- Severity
- 4.4medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.30% (higher than 24% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-7mxx-3cgm-xxv3
Description
API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. Starting in version 3.3.8, a security check that gets called after GraphQl resolvers is always replaced by another one as there's no break in a clause. As this falls back to `security`, the impact is there only when there's only a security after resolver and none inside security. Version 3.3.15 contains a patch for the issue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| api-platform core | >= 3.3.8, < 3.3.15 | CVE List |
| api-platform/core (Packagist) | from 3.3.8 before 3.3.15 | GitHub Advisory Database |
All scores
| GitHub_M | 4.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N |
| GitHub | 4.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N |
Classification
What each source says
CVE List
API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. Starting in version 3.3.8, a security check that gets called after GraphQl resolvers is always replaced by another one as there's no break in a clause. As this falls back to `security`, the impact is there only when there's only a security after resolver and none inside security. Version 3.3.15 contains a patch for the issue.
GitHub Advisory Database
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
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.
NVD (es)
API Platform Core es un sistema para crear APIs REST y GraphQL basadas en hipermedia. A partir de la versión 3.3.8, una comprobación de seguridad que se ejecuta después de los resolvers GraphQL siempre se reemplaza por otra, ya que no hay interrupción en una cláusula. Dado que esto se basa en la seguridad, el impacto solo se produce cuando solo hay una seguridad después del resolver y ninguna dentro de la seguridad. La versión 3.3.15 incluye un parche para este problema.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-23204 changed 2025-03-24 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7mxx-3cgm-xxv3 changed 2025-03-24 | CC-BY-4.0 |
| NVD | CVE-2025-23204 changed 2026-06-17 | Public domain |