# CVE-2026-80051: github.com/graphql-go/graphql (GraphQL for Go) through 0.8.1 does not validate that a scalar variable value matches its declared type.

- Severity: Medium 5.9 (CVSS:4.0, scored by mitre) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-25T17:55:57.383Z
- Modified: 2026-09-09T16:03:22.897Z
- Weaknesses: CWE-1287
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- github.com/graphql-go/graphql: up to 0.8.1

## References

- <https://www.openwall.com/lists/oss-security/2026/08/25/2> (exploit)
- <https://github.com/graphql-go/graphql/blob/v0.8.1/scalars.go#L307-L315> (technical-description)

## Sources

- CVE List: [CVE-2026-80051](https://www.cve.org/CVERecord?id=CVE-2026-80051), CVE Terms of Use, modified 2026-08-25
- NVD: [CVE-2026-80051](https://nvd.nist.gov/vuln/detail/CVE-2026-80051), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-80051 · Whole record: https://cve.day/CVE-2026-80051.json · Rebuilt by cve.day 2026-11-25T22:59:35.206Z
