CVE-2026-115887
graphql-scalars PhoneNumber scalar is vulnerable to regular expression denial of service
High 7.5
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.
GitHub_M
2026-10-23
2026-10-23
2026-10-23
Scores
| Source | CVSS | Score | Severity | Vector |
|---|---|---|---|---|
| GitHub_M | 3.1 | 7.5 | High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Weaknesses
Affected
| Vendor | Product | Versions |
|---|---|---|
| graphql-hive | graphql-scalars | >= 1.24.1, < 2.0.1 (affected) |
References
- https://github.com/graphql-hive/graphql-scalars/security/advisories/GHSA-x8rm-f576-gq67 x_refsource_CONFIRM
- https://github.com/graphql-hive/graphql-scalars/pull/2719 x_refsource_MISC
- https://github.com/graphql-hive/graphql-scalars/commit/210fd2485641afa2452800c00144245c74361701 x_refsource_MISC
- https://github.com/graphql-hive/graphql-scalars/releases/tag/v2.0.1 x_refsource_MISC
Full CVE JSON record (5.2)
{
"containers": {
"cna": {
"affected": [
{
"product": "graphql-scalars",
"vendor": "graphql-hive",
"versions": [
{
"status": "affected",
"version": "\u003e= 1.24.1, \u003c 2.0.1"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-1333",
"description": "CWE-1333: Inefficient Regular Expression Complexity",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-10-23T21:19:42.561Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/graphql-hive/graphql-scalars/security/advisories/GHSA-x8rm-f576-gq67",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/graphql-hive/graphql-scalars/security/advisories/GHSA-x8rm-f576-gq67"
},
{
"name": "https://github.com/graphql-hive/graphql-scalars/pull/2719",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/graphql-hive/graphql-scalars/pull/2719"
},
{
"name": "https://github.com/graphql-hive/graphql-scalars/commit/210fd2485641afa2452800c00144245c74361701",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/graphql-hive/graphql-scalars/commit/210fd2485641afa2452800c00144245c74361701"
},
{
"name": "https://github.com/graphql-hive/graphql-scalars/releases/tag/v2.0.1",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/graphql-hive/graphql-scalars/releases/tag/v2.0.1"
}
],
"source": {
"advisory": "GHSA-x8rm-f576-gq67",
"discovery": "UNKNOWN"
},
"title": "graphql-scalars PhoneNumber scalar is vulnerable to regular expression denial of service"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-115887",
"datePublished": "2026-10-23T21:19:42.561Z",
"dateReserved": "2026-10-23T19:37:27.176Z",
"dateUpdated": "2026-10-23T21:19:42.561Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}