Skip to content
PatchBriefing

Search PatchBriefing

Type at least two characters. Results update as you type.

Search CVEs, products, packages and article titles.

Nothing found. Identifiers such as CVE and GHSA can be searched in both languages.

Subscribe

High · 7.5 Node.js & npm CVE-2026-115887 GHSA-x8rm-f576-gq67

ReDoS Vulnerability in graphql-scalars PhoneNumber Scalar (CVE-2026-115887)

The graphql-scalars npm library contains a regular expression denial-of-service flaw in its PhoneNumber scalar that lets an unauthenticated attacker stall a Node.js server with a single crafted request. Versions 1.24.1 through 2.0.0 are affected; version 2.0.1 fixes the issue.

By PatchBriefing · ·

Produced automatically from official sources with the help of AI. How we work →

Synthesized by AI from 3 sources · updated 1 week ago

AI summary

A regular expression denial-of-service (ReDoS) vulnerability has been identified in the graphql-scalars npm package, a library of custom GraphQL scalar types. The flaw affects the PhoneNumber scalar and can be triggered by unauthenticated users before any resolver-level authentication or authorization checks run, making it a straightforward availability risk for applications that expose this scalar in their GraphQL schema.

What Happened

A vulnerability tracked as CVE-2026-115887 (GHSA-x8rm-f576-gq67) was disclosed in the graphql-scalars library. The PhoneNumber scalar implementation (in src/scalars/PhoneNumber.ts) uses a regular expression with ambiguous nested digit quantifiers. When a PhoneNumber value contains a run of digits followed by a character that causes the match to ultimately fail, the regular expression engine can backtrack exponentially, consuming excessive CPU time.

Technical Cause

The root cause is classified as CWE-1333 (Inefficient Regular Expression Complexity). GraphQL's execution model evaluates parseLiteral during document validation and parseValue during variable coercion — both of which run before resolver-level authentication or authorization. This means a malicious PhoneNumber value can reach the vulnerable regular expression logic without the attacker needing to be authenticated. The serialize function is also affected in cases where unvalidated, previously stored values are returned through the scalar.

Why It Matters

Because the vulnerable code path executes before any authentication or authorization check, a small, crafted request is sufficient to trigger exponential backtracking in the regular expression engine. This can block the Node.js event loop and stall the entire server process, resulting in a denial of service for all users of the affected application — not just the attacker.

Who Is Affected

Any application using the graphql-scalars npm package with the PhoneNumber scalar exposed in its GraphQL schema, running an affected version, is at risk. This includes services where PhoneNumber values are accepted as input (triggering parseLiteral/parseValue) or returned as output through stored, unvalidated data (triggering serialize).

Affected Versions

graphql-scalars versions from 1.24.1 up to and including 2.0.0 are affected. Versions prior to 1.24.1 are not mentioned as impacted in the available fact package.

Fixes and Mitigation

The issue is fixed in graphql-scalars version 2.0.1. Site owners and developers using the PhoneNumber scalar should upgrade to this version or later.

Recommended Action

Check whether your application depends on graphql-scalars and whether it uses the PhoneNumber scalar type. If you are running version 1.24.1 through 2.0.0, upgrade to version 2.0.1 as soon as possible. If an immediate upgrade is not feasible, consider disabling or restricting use of the PhoneNumber scalar as a temporary mitigation.

PatchBriefing score

7.5 / 10 · High

Official CVSS: 7.5

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

EPSS 0.0074 (51 percentile)

Why this score

The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.

Affected versions

graphql-scalars >= 1.24.1, <= 2.0.0
vulnerable
graphql-scalars ≥ 1.24.1 < 2.0.1
vulnerable
≥ 2.0.1
patched

Reported fixes

The issue is fixed in graphql-scalars version 2.0.1. Site owners and developers using the PhoneNumber scalar should upgrade to this version or later.

How this was built

3 source records were collected, matched and used to prepare the report above.

  • NVD (NIST) database
  • GitHub Advisory Database database
  • OSV.dev database
Unified report
ReDoS Vulnerability in graphql-scalars PhoneNumber Scalar (CVE-2026-115887)
1 article · 3 sources cited
Revision history
  1. Published
  2. Generated
  3. Published
  4. Generated
  5. Published
  6. Generated
The Morning Brief

Relevant changes for the stacks you follow.

Choose your stacks, topics and optional WordPress plugins. At 07:00 CET, matching advisories and releases from the reporting period are grouped into one email.

✓ Choose stacks and topics✓ Change preferences anytime✓ One grouped email