Skip to content
Heist/ feed
Back to feed
High

graphql-scalars PhoneNumber scalar is vulnerable to regular expression denial of service

Type: advisorySources: OSV

GraphQL Scalars is a library of custom GraphQL scalars for creating precise type-safe GraphQL schemas. From 1.24.1 until 2.0.1, GraphQLPhoneNumber in src/scalars/PhoneNumber.ts uses ambiguous nested digit quantifiers that backtrack exponentially when a PhoneNumber value contains a run of digits followed by a character that makes the match fail. GraphQL evaluates parseLiteral during document validation and parseValue during variable coercion before resolver authentication or authorization, so a small unauthenticated request can block the Node.js event loop and stall the server process. serialize is also affected when unvalidated stored values are returned through the scalar. This issue is fixed in version 2.0.1.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-115887
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 03:59 UTC · Revision 1

Source evidence

graphql-scalars PhoneNumber scalar is vulnerable to regular expression denial of service

core-osv · Original source

Published 23 Oct 2026, 21:19 UTC

GraphQL Scalars is a library of custom GraphQL scalars for creating precise type-safe GraphQL schemas. From 1.24.1 until 2.0.1, GraphQLPhoneNumber in src/scalars/PhoneNumber.ts uses ambiguous nested digit quantifiers that backtrack exponentially when a PhoneNumber value contains a run of digits followed by a character that makes the match fail. GraphQL evaluates parseLiteral during document validation and parseValue during variable coercion before resolver authentication or authorization, so a small unauthenticated request can block the Node.js event loop and stall the server process. serialize is also affected when unvalidated stored values are returned through the scalar. This issue is fixed in version 2.0.1.

osv:CVE-2026-115887
Complete source record
{
  "id": "2f9e54d4c8235bbb77e0af5c035bccddb4213cdd9ec650f10390acbe2dfa77ae",
  "url": "https://osv.dev/vulnerability/CVE-2026-115887",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "graphql-scalars PhoneNumber scalar is vulnerable to regular expression denial of service",
    "summary": "GraphQL Scalars is a library of custom GraphQL scalars for creating precise type-safe GraphQL schemas. From 1.24.1 until 2.0.1, GraphQLPhoneNumber in src/scalars/PhoneNumber.ts uses ambiguous nested digit quantifiers that backtrack exponentially when a PhoneNumber value contains a run of digits followed by a character that makes the match fail. GraphQL evaluates parseLiteral during document validation and parseValue during variable coercion before resolver authentication or authorization, so a small unauthenticated request can block the Node.js event loop and stall the server process. serialize is also affected when unvalidated stored values are returned through the scalar. This issue is fixed in version 2.0.1.",
    "evidence": "osv:CVE-2026-115887",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-115887",
      "aliases": [
        "CVE-2026-115887",
        "GHSA-x8rm-f576-gq67"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/graphql-hive/graphql-scalars",
              "type": "GIT",
              "events": [
                {
                  "introduced": "751ee5c506f4c8e3209cb599a2e5515a72258b34"
                },
                {
                  "fixed": "afcc2527c6605519c6b9acb56f49b7683a6a07b5"
                },
                {
                  "fixed": "210fd2485641afa2452800c00144245c74361701"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "1.24.1"
                      },
                      {
                        "fixed": "2.0.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "210fd2485641afa2452800c00144245c74361701"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "afcc2527c6605519c6b9acb56f49b7683a6a07b5"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v2.0.1"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.0.0",
            "v1.26.0",
            "v1.25.0",
            "v1.24.2",
            "v1.24.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-115887.json"
          }
        }
      ],
      "modified": "2026-11-01T02:30:57.316377746Z",
      "provider": "osv",
      "references": [
        "https://github.com/graphql-hive/graphql-scalars/releases/tag/v2.0.1",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115887.json",
        "https://github.com/graphql-hive/graphql-scalars/security/advisories/GHSA-x8rm-f576-gq67",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-115887",
        "https://github.com/graphql-hive/graphql-scalars/commit/210fd2485641afa2452800c00144245c74361701",
        "https://github.com/graphql-hive/graphql-scalars/pull/2719"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-1333"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115887.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-115887",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 500180,
  "published_at": "2026-10-23T21:19:42.561+00:00"
}