From e92088acab88b1c86ad3c2a88458911e55b26e65 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Thu, 9 Jan 2025 18:53:40 +0000 Subject: [PATCH] Publish Advisories GHSA-j89h-qrvr-xc36 GHSA-v6q2-4qr3-5cw6 GHSA-x32m-mvfj-52xv GHSA-5xh2-23cc-5jc6 --- .../GHSA-j89h-qrvr-xc36.json | 3 +- .../GHSA-v6q2-4qr3-5cw6.json | 3 +- .../GHSA-x32m-mvfj-52xv.json | 6 +- .../GHSA-5xh2-23cc-5jc6.json | 61 +++++++++++++++++++ 4 files changed, 68 insertions(+), 5 deletions(-) create mode 100644 advisories/github-reviewed/2025/01/GHSA-5xh2-23cc-5jc6/GHSA-5xh2-23cc-5jc6.json diff --git a/advisories/github-reviewed/2024/03/GHSA-j89h-qrvr-xc36/GHSA-j89h-qrvr-xc36.json b/advisories/github-reviewed/2024/03/GHSA-j89h-qrvr-xc36/GHSA-j89h-qrvr-xc36.json index 23495c43718..de566a6a9b1 100644 --- a/advisories/github-reviewed/2024/03/GHSA-j89h-qrvr-xc36/GHSA-j89h-qrvr-xc36.json +++ b/advisories/github-reviewed/2024/03/GHSA-j89h-qrvr-xc36/GHSA-j89h-qrvr-xc36.json @@ -101,7 +101,8 @@ ], "database_specific": { "cwe_ids": [ - "CWE-311" + "CWE-311", + "CWE-319" ], "severity": "MODERATE", "github_reviewed": true, diff --git a/advisories/github-reviewed/2024/03/GHSA-v6q2-4qr3-5cw6/GHSA-v6q2-4qr3-5cw6.json b/advisories/github-reviewed/2024/03/GHSA-v6q2-4qr3-5cw6/GHSA-v6q2-4qr3-5cw6.json index 33f63e913f9..27927da902b 100644 --- a/advisories/github-reviewed/2024/03/GHSA-v6q2-4qr3-5cw6/GHSA-v6q2-4qr3-5cw6.json +++ b/advisories/github-reviewed/2024/03/GHSA-v6q2-4qr3-5cw6/GHSA-v6q2-4qr3-5cw6.json @@ -82,7 +82,8 @@ ], "database_specific": { "cwe_ids": [ - "CWE-311" + "CWE-311", + "CWE-319" ], "severity": "MODERATE", "github_reviewed": true, diff --git a/advisories/github-reviewed/2024/03/GHSA-x32m-mvfj-52xv/GHSA-x32m-mvfj-52xv.json b/advisories/github-reviewed/2024/03/GHSA-x32m-mvfj-52xv/GHSA-x32m-mvfj-52xv.json index d19e465bf82..f9d136a80bd 100644 --- a/advisories/github-reviewed/2024/03/GHSA-x32m-mvfj-52xv/GHSA-x32m-mvfj-52xv.json +++ b/advisories/github-reviewed/2024/03/GHSA-x32m-mvfj-52xv/GHSA-x32m-mvfj-52xv.json @@ -1,7 +1,7 @@ { "schema_version": "1.4.0", "id": "GHSA-x32m-mvfj-52xv", - "modified": "2024-03-22T20:05:19Z", + "modified": "2025-01-09T18:51:54Z", "published": "2024-03-18T17:21:17Z", "aliases": [ "CVE-2024-21652" @@ -11,7 +11,7 @@ "severity": [ { "type": "CVSS_V3", - "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N" + "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H" } ], "affected": [ @@ -107,7 +107,7 @@ "cwe_ids": [ "CWE-307" ], - "severity": "MODERATE", + "severity": "CRITICAL", "github_reviewed": true, "github_reviewed_at": "2024-03-18T17:21:17Z", "nvd_published_at": "2024-03-18T18:15:09Z" diff --git a/advisories/github-reviewed/2025/01/GHSA-5xh2-23cc-5jc6/GHSA-5xh2-23cc-5jc6.json b/advisories/github-reviewed/2025/01/GHSA-5xh2-23cc-5jc6/GHSA-5xh2-23cc-5jc6.json new file mode 100644 index 00000000000..20284e235a1 --- /dev/null +++ b/advisories/github-reviewed/2025/01/GHSA-5xh2-23cc-5jc6/GHSA-5xh2-23cc-5jc6.json @@ -0,0 +1,61 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-5xh2-23cc-5jc6", + "modified": "2025-01-09T18:51:51Z", + "published": "2025-01-09T18:51:51Z", + "aliases": [ + "CVE-2025-22151" + ], + "summary": "Strawberry GraphQL has type resolution vulnerability in node interface that allows potential data leakage through incorrect type resolution", + "details": "**Vulnerability Summary**\nA type confusion vulnerability exists in Strawberry GraphQL's relay integration that affects multiple ORM integrations (Django, SQLAlchemy, Pydantic). The vulnerability occurs when multiple GraphQL types are mapped to the same underlying model while using the relay `node` interface.\n\n**Affected Components**\n- Strawberry GraphQL relay integration\n- Specifically impacts implementations using:\n - Django integration\n - SQLAlchemy integration\n - Pydantic integration\n\n**Technical Details**\n\nThe vulnerability manifests when:\n1. Multiple GraphQL types inherit from `relay.Node`\n2. These types are mapped to the same database model\n3. The global `node` field is used for type resolution\n\nExample of vulnerable code:\n\n```python\nfrom fruits.models import Fruit\nimport strawberry_django\nimport strawberry\n\n@strawberry_django.type(Fruit)\nclass FruitType(relay.Node):\n name: strawberry.auto\n\n@strawberry_django.type(Fruit)\nclass SpecialFruitType(relay.Node):\n secret_name: strawberry.auto\n\n@strawberry.type\nclass Query:\n node: relay.Node = strawberry_django.node()\n```\n\n**Security Impact**\n\nWhen querying for a specific type using the global `node` field (e.g., `FruitType:some-id`), the resolver may incorrectly return an instance of a different type mapped to the same model (e.g., `SpecialFruitType`). This can lead to:\n\n1. Information disclosure if the alternate type exposes sensitive fields\n2. Potential privilege escalation if the alternate type contains data intended for restricted access\n\n**Note**\nEven with knowledge of the correct type name (e.g., `SpecialFruitType`), attackers may still be able to access unauthorized data through direct type queries.\n\nWe recommend to use permission on fields instead of creating a dedicate type.\n\n**Recommendations**\n1. Avoid mapping multiple relay Node types to the same model\n2. Implement strict access controls at the field resolution level (using permissions)\n3. Consider using separate models for different access levels of the same data\n4. Update to `strawberry-graphql>=0.257.0`\n5. If using `strawberry-graphql-django`, update to `strawberry-graphql-django>=0.54.0`", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N" + } + ], + "affected": [ + { + "package": { + "ecosystem": "PyPI", + "name": "strawberry-graphql" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0.182.0" + }, + { + "fixed": "0.257.0" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/strawberry-graphql/strawberry/security/advisories/GHSA-5xh2-23cc-5jc6" + }, + { + "type": "WEB", + "url": "https://github.com/strawberry-graphql/strawberry/commit/526eb82b70451c0e59d5a71ae9b7396f59974bd8" + }, + { + "type": "PACKAGE", + "url": "https://github.com/strawberry-graphql/strawberry" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-351" + ], + "severity": "LOW", + "github_reviewed": true, + "github_reviewed_at": "2025-01-09T18:51:51Z", + "nvd_published_at": null + } +} \ No newline at end of file