Medium severity · published Feb 28, 2023
CVE-2023-25575
API Platform Core is the server component of API Platform: hypermedia and GraphQL APIs
6.5
CVSS
0.6%
EPSS
No
On KEV
Description
API Platform Core is the server component of API Platform: hypermedia and GraphQL APIs. Resource properties secured with the `security` option of the `ApiPlatform\Metadata\ApiProperty` attribute can be disclosed to unauthorized users. The problem affects most serialization formats, including raw JSON, which is enabled by default when installing API Platform. Custom serialization formats may also be impacted. Only collection endpoints are affected by the issue, item endpoints are not. The JSON-LD format is not affected by the issue. The result of the security rule is only executed for the first item of the collection. The result of the rule is then cached and reused for the next items. This bug can leak data to unauthorized users when the rule depends on the value of a property of the item. This bug can also hide properties that should be displayed to authorized users. This issue impacts the 2.7, 3.0 and 3.1 branches. Please upgrade to versions 2.7.10, 3.0.12 or 3.1.3. As a workaround, replace the `cache_key` of the context array of the Serializer inside a custom normalizer that works on objects if the security option of the `ApiPlatform\Metadata\ApiProperty` attribute is used.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 49% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CO
Core · Api-platform
2.6.0 before 2.7.10; 3.0.0 before 3.0.12; 3.1.0 before 3.1.3 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-25575
CVE.org
https://www.cve.org/CVERecord?id=CVE-2023-25575
Patch
https://github.com/api-platform/core/commit/5723d68369722feefeb11e42528d9580db5dd0fb
Vendor Advisory
https://github.com/api-platform/core/security/advisories/GHSA-vr2x-7687-h6qv
More from Core
7.5
CVE-2025-31485
GraphQL grant on a property might be cached with different objects
7.5
CVE-2025-31481
GraphQL query operations security can be bypassed
6.5
CVE-2026-54164
API Platform Core: Missing IRI type check enables resource type confusion
6.5
CVE-2019-1000011
API Platform version from 2.2.0 to 2.3.5 contains an Incorrect Access Control vulnerability in GraphQL delete mutations that can result in a user authorized to delete a resource…
5.9
CVE-2026-49858
API Platform Core: Cross-user attribute leak in JSON:API and HAL item normalizers due to missing isCacheKeySafe gate
