Advisory

GHSA-7mxx-3cgm-xxv3

Also known as: CVE-2025-23204

Summary

API Platform Core does not call GraphQl securityAfterResolver

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-03-24 16:31 UTC
Modified
2025-03-24 18:56 UTC

Affected packages and fixes

api-platform/core

Packagist · All systems

Affected

  • introduced 3.3.8, fixed 3.3.15 (ecosystem)

Fixed versions

3.3.15

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences