CVE-2026-137490: SurrealDB before 4.0.0 Authorization Bypass via JavaScript surrealdb.query() Bridge

Published Nov 26, 2026
·
Updated

SurrealDB before 4.0.0 contains an authorization bypass vulnerability that allows restricted subjects to execute arbitrary queries by calling the JavaScript surrealdb.query() bridge. Attackers permitted to run a specific script can bypass the Capabilities::allowsquery() gate in the query module to execute unrestricted queries beyond their predefined operations.

Affected Software

1 affected component
SurrealDB SurrealDB<4.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.0.0

Event History

Nov 26, 2026
CVE Published
via MITRE·04:01 PM
Data Sourced
via MITRE·04:01 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:17 PM
DescriptionSeverityWeakness
Event
via NVD·04:17 PM

Frequently Asked Questions

1

Who can exploit this issue?

An attacker must already be permitted to run a specific JavaScript script in SurrealDB. The issue lets that restricted subject exceed the operations they were originally authorized to perform.

2

What access does exploitation provide?

The attacker can execute arbitrary, unrestricted queries through the JavaScript surrealdb.query() bridge. This bypasses the Capabilities::allows_query() authorization gate and can affect confidentiality, integrity, and availability.

3

Are installations running version 4.0.0 affected?

The issue is described as affecting SurrealDB versions before 4.0.0. The provided information does not identify any other affected or fixed versions.

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