Description
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.
References5
- github.com/graphql-hive/graphql-scalars/commit/210fd2485641afa2…
- 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/GHS…
- github.com/graphql-hive/graphql-scalars/security/advisories/GHS…
Metrics
- CVSS 3.1
-
7.5
HIGH
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - EPSS — exploit probability
- 0% percentile: 42 · as of 8 November 2026
- CWE
- CWE-1333
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.