Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. graphql-scalars
  4. ›
  5. CVE-2026-115887

CVE-2026-115887: graphql-scalars PhoneNumber scalar is vulnerable to regular expression denial of service

October 28, 2026 (updated October 30, 2026)

The regular expression behind GraphQLPhoneNumber since 1.24.1 backtracks exponentially. A string made of a run of digits followed by one character that makes the match fail (for example "1".repeat(30) + "x") blocks the JavaScript thread for seconds, and every additional digit doubles the time.

graphql-js calls parseLiteral while validating a document and parseValue while coercing variables, so the regex runs for every request that merely contains such a value in a PhoneNumber position, before execution and before any authentication or authorization step of the server. One small unauthenticated request is enough to stall a server process.

References

  • github.com/advisories/GHSA-x8rm-f576-gq67
  • github.com/graphql-hive/graphql-scalars/commit/210fd2485641afa2452800c00144245c74361701
  • github.com/graphql-hive/graphql-scalars/pull/2719
  • github.com/graphql-hive/graphql-scalars/releases/tag/v2.0.1
  • github.com/graphql-hive/graphql-scalars/security/advisories/GHSA-x8rm-f576-gq67
  • nvd.nist.gov/vuln/detail/CVE-2026-115887

Code Behaviors & Features

Detect and mitigate CVE-2026-115887 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.24.1 before 2.0.1

Fixed versions

  • 2.0.1

Solution

Upgrade to version 2.0.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/graphql-scalars/CVE-2026-115887.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:04 +0000.