CVE-2026-115887 graphql-scalars PhoneNumber scalar is vulnerable to regular expression denial of service
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2026-115887?
CVE-2026-115887 is a high-severity vulnerability in graphql-hive graphql-scalars, published on 23 Oct 2026.
Official 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.
Weakness: CWE-1333
Which versions are affected by CVE-2026-115887?
2 open source packages ship an affected version, including graphql-scalars.
| Package | Affected | Fixed in |
|---|---|---|
graphql-scalars npm | All versions | 2.0.1 |
graphql-scalars npm | All versions | 2.0.1 |
How do I fix CVE-2026-115887?
Upgrade graphql-scalars to 2.0.1 or later.
Is CVE-2026-115887 being exploited?
There is no known exploitation of CVE-2026-115887 in the wild and no public exploit code.
Sources
Also known as GHSA-x8rm-f576-gq67.