---
id: CVE-2026-115887
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 expon…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cvssSource: cna
cwe:
  - CWE-1333
vendor: graphql-hive
product: graphql-scalars
affected:
  - 'graphql-scalars >= 1.24.1, < 2.0.1'
published: '2026-10-23'
updated: '2026-10-23'
sourceUpdated: '2026-10-23T21:19:42.561Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-115887'
references:
  - url: >-
      https://github.com/graphql-hive/graphql-scalars/security/advisories/GHSA-x8rm-f576-gq67
    label: >-
      https://github.com/graphql-hive/graphql-scalars/security/advisories/GHSA-x8rm-f576-gq67
  - url: 'https://github.com/graphql-hive/graphql-scalars/pull/2719'
    label: 'https://github.com/graphql-hive/graphql-scalars/pull/2719'
  - url: >-
      https://github.com/graphql-hive/graphql-scalars/commit/210fd2485641afa2452800c00144245c74361701
    label: >-
      https://github.com/graphql-hive/graphql-scalars/commit/210fd2485641afa2452800c00144245c74361701
  - url: 'https://github.com/graphql-hive/graphql-scalars/releases/tag/v2.0.1'
    label: 'https://github.com/graphql-hive/graphql-scalars/releases/tag/v2.0.1'
tags:
  - cve.org
ingestedAt: '2026-10-23T21:38:13.050Z'
---

## Overview

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.

## Affected

- `graphql-scalars >= 1.24.1, < 2.0.1`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
