API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. Prior to 4.0.22 and 3.4.17, a GraphQL grant on a property might be cached with different objects. The ApiPlatform\GraphQl\Serializer\ItemNormalizer::isCacheKeySafe() method is meant to prevent the caching but the parent::normalize method that is called afterwards still creates the cache key and causes the issue. This vulnerability is fixed in 4.0.22 and 3.4.17.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-696"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31485.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "4.0.0-alpha.1"
},
{
"fixed": "4.0.22"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "0"
},
{
"fixed": "3.4.17"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "7af65aad13037d7649348ee3dcd88e084ef771f8"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "cba3acfbd517763cf320167250c5bed6d569696a"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v3.4.17",
"range": [
{
"fixed": "c5fb664d17ed9ae919394514ea69a5039d2ad9ab"
}
],
"source": "REFERENCES_TAG"
}
]
}