{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-80051",
        "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
        "state": "PUBLISHED",
        "assignerShortName": "mitre",
        "dateReserved": "2026-08-25T17:55:04.047Z",
        "datePublished": "2026-08-25T17:55:57.383Z",
        "dateUpdated": "2026-08-25T17:55:57.383Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "collectionURL": "https://pkg.go.dev",
                    "defaultStatus": "unknown",
                    "packageName": "github.com/graphql-go/graphql",
                    "packageURL": "pkg:golang/github.com/graphql-go/graphql",
                    "product": "graphql-go",
                    "programFiles": [
                        "scalars.go"
                    ],
                    "programRoutines": [
                        {
                            "name": "coerceString"
                        },
                        {
                            "name": "coerceBool"
                        }
                    ],
                    "repo": "https://github.com/graphql-go/graphql",
                    "vendor": "graphql-go project",
                    "versions": [
                        {
                            "lessThanOrEqual": "0.8.1",
                            "status": "affected",
                            "version": "0",
                            "versionType": "semver"
                        }
                    ]
                }
            ],
            "configurations": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "<p>The denial-of-service (stack-overflow) condition requires that the application's variable-deserialization <i></i>layer does not impose an input nesting-depth limit. Go's standard encoding/json caps nesting at depth 10000, <i></i>whereas the crash requires ~600,000 levels so the standard JSON path is not exploitable. <i></i>Realistic exposure is via a non-JSON transport, programmatically-constructed variable values, or a JSON <i></i>decoder configured without a depth cap. The type-validation defect itself requires no special configuration.</p>"
                        }
                    ],
                    "value": "The denial-of-service (stack-overflow) condition requires that the application's variable-deserialization layer does not impose an input nesting-depth limit. Go's standard encoding/json caps nesting at depth 10000, whereas the crash requires ~600,000 levels so the standard JSON path is not exploitable. Realistic exposure is via a non-JSON transport, programmatically-constructed variable values, or a JSON decoder configured without a depth cap. The type-validation defect itself requires no special configuration."
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "github.com/graphql-go/graphql (GraphQL for Go) through 0.8.1 does not validate that a scalar variable value matches its declared type. The built-in coerceString and coerceBool functions (scalars.go) accept input whose type does not match the declared String, ID, or Boolean scalar instead of raising the request error that the GraphQL specification mandates. In some cases (but not any typical case of JSON sent to a website), a deeply nested value leads to an unrecoverable \"fatal error: stack overflow\" condition."
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "Automatable": "NOT_DEFINED",
                        "Recovery": "NOT_DEFINED",
                        "Safety": "NOT_DEFINED",
                        "attackComplexity": "LOW",
                        "attackRequirements": "PRESENT",
                        "attackVector": "LOCAL",
                        "baseScore": 5.9,
                        "baseSeverity": "MEDIUM",
                        "privilegesRequired": "NONE",
                        "providerUrgency": "NOT_DEFINED",
                        "subAvailabilityImpact": "NONE",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "NONE",
                        "userInteraction": "NONE",
                        "valueDensity": "NOT_DEFINED",
                        "vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
                        "version": "4.0",
                        "vulnAvailabilityImpact": "HIGH",
                        "vulnConfidentialityImpact": "NONE",
                        "vulnIntegrityImpact": "NONE",
                        "vulnerabilityResponseEffort": "NOT_DEFINED"
                    },
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-1287",
                            "description": "CWE-1287 Improper Validation of Specified Type of Input",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
                "shortName": "mitre",
                "dateUpdated": "2026-08-25T17:55:57.383Z"
            },
            "references": [
                {
                    "tags": [
                        "technical-description"
                    ],
                    "url": "https://github.com/graphql-go/graphql/blob/v0.8.1/scalars.go#L307-L315"
                },
                {
                    "tags": [
                        "exploit"
                    ],
                    "url": "https://www.openwall.com/lists/oss-security/2026/08/25/2"
                }
            ],
            "workarounds": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "Decode GraphQL variables with a deserializer that enforces a maximum nesting depth (Go's standard&nbsp;encoding/json does), which mitigates the stack-overflow condition. There is no library-level workaround for&nbsp;the type-confusion condition short of application-side validation of scalar arguments or a custom scalar;&nbsp;upgrading once a fix ships is the durable remedy."
                        }
                    ],
                    "value": "Decode GraphQL variables with a deserializer that enforces a maximum nesting depth (Go's standard encoding/json does), which mitigates the stack-overflow condition. There is no library-level workaround for the type-confusion condition short of application-side validation of scalar arguments or a custom scalar; upgrading once a fix ships is the durable remedy."
                }
            ],
            "x_generator": {
                "engine": "CVE-Request-form 0.0.1"
            },
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:a:graphql-go_project:graphql-go:*:*:*:*:*:*:*:*",
                                    "versionEndIncluding": "0.8.1"
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    }
}