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

Published Oct 23, 2026
·
Updated

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 Software

1 affected component
npm/graphql-scalars>=1.24.1<2.0.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade graphql-scalars to a version that resolves this vulnerability.

    Fixed in 2.0.1

Event History

Oct 23, 2026
CVE Published
via MITRE·09:19 PM
Data Sourced
via MITRE·09:19 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to unauthenticated denial of service?

Deployments using GraphQLPhoneNumber from graphql-scalars versions 1.24.1 through versions before 2.0.1 are exposed if an attacker can submit GraphQL documents or variables to the server. The vulnerable validation and coercion occur before resolver authentication or authorization, so authentication does not protect affected request paths.

2

What input is needed to trigger the issue?

An attacker can supply a PhoneNumber value containing a run of digits followed by a character that causes the regular-expression match to fail. The ambiguous nested digit quantifiers can then backtrack exponentially and block the Node.js event loop.

3

Can this be triggered without invoking a resolver?

Yes. GraphQL evaluates parseLiteral during document validation and parseValue during variable coercion, before resolver authentication or authorization. A small request can therefore stall the server process before application resolver logic runs.

4

Are there non-request paths that may be affected?

Yes. The scalar's serialize operation is also affected when unvalidated stored values are returned through GraphQLPhoneNumber. This means returning malformed persisted data through the scalar can trigger the same behavior.

5

What version resolves the vulnerability?

The issue is fixed in graphql-scalars version 2.0.1.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203