{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "4.0.0"
              },
              {
                "fixed": "4.0.22"
              },
              {
                "introduced": "0"
              },
              {
                "fixed": "3.4.17"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "825833cfee432e6b0988882d019b4fe4a03f63d5"
            },
            {
              "introduced": "0"
            },
            {
              "fixed": "8de9bf87f20a31f74102247cb8d75583797c6593"
            },
            {
              "fixed": "c5fb664d17ed9ae919394514ea69a5039d2ad9ab"
            },
            {
              "fixed": "55712452b4f630978537bdb2a07dc958202336bb"
            },
            {
              "fixed": "60747cc8c2fb855798c923b5537888f8d0969568"
            }
          ],
          "repo": "https://github.com/api-platform/core",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-cg3c-245w-728m"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-863"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31481.json"
  },
  "details": "API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. Using the Relay special node type you can bypass the configured security on an operation. This vulnerability is fixed in 4.0.22 and 3.4.17.",
  "id": "CVE-2025-31481",
  "modified": "2026-08-12T03:51:40.002707913Z",
  "published": "2025-04-03T19:20:22.916Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/api-platform/core/releases/tag/v3.4.17"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31481.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/api-platform/core/security/advisories/GHSA-cg3c-245w-728m"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-31481"
    },
    {
      "type": "FIX",
      "url": "https://github.com/api-platform/core/commit/55712452b4f630978537bdb2a07dc958202336bb"
    },
    {
      "type": "FIX",
      "url": "https://github.com/api-platform/core/commit/60747cc8c2fb855798c923b5537888f8d0969568"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "GraphQL query operations security can be bypassed"
}