CVE-2026-45739: Strawberry GraphQL: Default GraphiQL may expose HTTP headers in URLs

Published May 19, 2026
·
Updated

Summary

Strawberry's bundled GraphiQL template wrote values from the GraphiQL headers editor into the browser URL query string. If a user entered a sensitive header, such as Authorization: Bearer <token>, the value could become visible in browser history, copied links, and server/proxy/CDN access logs after a page reload or shared request.

Affected Versions

- Affected: strawberry-graphql >= 0.288.4, <= 0.315.3 - Patched: 0.315.4

The vulnerable behavior was introduced by the GraphiQL URL-sharing implementation in commit 9315ef80, first included in release 0.288.4.

Impact

Applications that expose Strawberry's default GraphiQL IDE may leak sensitive HTTP header values entered by users into the GraphiQL headers editor. The default IDE is enabled by graphqlide="graphiql" across Strawberry HTTP integrations unless disabled or replaced by the application.

The exposure is limited to the browser-based IDE. GraphQL query execution is not affected, and this issue does not allow an attacker to directly execute operations or bypass authorization. Practical exploitation requires a user to enter a secret into the GraphiQL headers editor and then expose the resulting URL, for example by refreshing the page, copying the URL, sharing the URL, or causing the URL to be recorded by logging infrastructure.

Technical Details

The bundled strawberry/static/graphiql.html template parsed URL query parameters into a parameters object and used those values to initialize GraphiQL state. It also updated the URL on editor changes using history.replaceState.

Before the fix, header values were handled like shareable query text and variables:

js const [headers, setHeaders] = React.useState(parameters.headers);

function onEditHeaders(newHeaders) { setHeaders(newHeaders); updateURL({ headers: newHeaders }); }

This meant arbitrary header text entered into the IDE could be serialized into ?headers=....

Fix

The GraphiQL template no longer calls updateURL from onEditHeaders. Query and variable URL sharing remain unchanged, and existing URLs with headers=... can still initialize the headers editor. Header persistence via GraphiQL's own shouldPersistHeaders: true behavior remains enabled, so newly edited headers can still persist locally without being placed in the URL.

Workarounds

Until a patched version can be used, applications can mitigate this issue by disabling the bundled IDE in production:

python GraphQLRouter(schema, graphqlide=None)

Equivalent graphqlide=None configuration is available in Strawberry's other HTTP integrations.

Applications can also provide a custom GraphiQL template that does not serialize header values into the URL.

Credits

Reported by @lpschroer.

Other sources

Strawberry GraphQL is a library for creating GraphQL APIs. In versions 0.288.4 through 0.315.3, Strawberry's bundled GraphiQL template wrote values from the GraphiQL headers editor into the browser URL query string. If a user entered a sensitive header, such as Authorization: Bearer <token>, the value could become visible in browser history, copied links, and server/proxy/CDN access logs after a page reload or shared request. Version 0.315.4 patches the issue.

— MITRE

Affected Software

2 affected componentsFixes available
pip/strawberry-graphql>=0.288.4<=0.315.3
0.315.4
Strawberry Strawberry Graphql Python>=0.288.4<0.315.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/strawberry-graphql to a version that resolves this vulnerability.

    Fixed in 0.315.4
  2. Upgrade

    Upgrade strawberry-graphql to a version that resolves this vulnerability.

    Fixed in 0.315.4
  3. Configuration

    In production, disable Strawberry's default bundled GraphiQL IDE by setting graphql_ide=None (equivalent guidance noted for other HTTP integrations).

    Strawberry GraphQL HTTP integration (GraphiQL IDE) graphql_ide = None (disable bundled GraphiQL)

Event History

May 19, 2026
Advisory Published
via GitHub·03:55 PM
Data Sourced
via GitHub·03:55 PM
DescriptionSeverityWeaknessAffected Software
Jun 4, 2026
CVE Published
via MITRE·02:09 PM
Data Sourced
via MITRE·02:09 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-45739?

CVE-2026-45739 is considered a high severity vulnerability due to the risk of exposing sensitive information through browser URL query strings.

2

How do I fix CVE-2026-45739?

To fix CVE-2026-45739, update the strawberry-graphql package to version 0.315.4 or later.

3

What kind of sensitive data can be exposed by CVE-2026-45739?

CVE-2026-45739 can expose sensitive header values, such as authorization tokens, through the browser's URL query string.

4

Which versions of strawberry-graphql are affected by CVE-2026-45739?

CVE-2026-45739 affects strawberry-graphql versions from 0.288.4 to 0.315.3.

5

What are the potential consequences of CVE-2026-45739?

The potential consequences of CVE-2026-45739 include unauthorized access to sensitive data and exposure of user authentication tokens.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203