{
  "id": "CVE-2025-31485",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-31485",
  "published_at": "2025-04-03T19:31:46.021Z",
  "title": "GraphQL grant on a property might be cached with different objects",
  "vendor": "api-platform",
  "product": "core",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-696",
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "api-platform",
        "product": "core",
        "ranges": [
          "\u003e= 4.0.0-alpha.1, \u003c 4.0.22",
          "\u003c 3.4.17"
        ],
        "fixed_in": [
          "4.0.22",
          "3.4.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade core to 4.0.22 or 3.4.17 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/api-platform/core/security/advisories/GHSA-428q-q3vv-3fq3"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/api-platform/core/commit/7af65aad13037d7649348ee3dcd88e084ef771f8"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/api-platform/core/commit/cba3acfbd517763cf320167250c5bed6d569696a"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/api-platform/core/releases/tag/v3.4.17"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
