GHSA-vwjc-v7x7-cm6g: ArcadeDB Scripting Authorization Gate (GHSA-48qw-824m-86pr) Bypassed Vulnerability
HIGHGHSA-vwjc-v7x7-cm6g is a HIGH scripting authorization gate (ghsa-48qw-824m-86pr) bypassed vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting ArcadeDB libraries in the Maven ecosystem. The issue involves scripting authorization gate (ghsa-48qw-824m-86pr) bypassed via sql define function ... language js. Remediation is available by upgrading affected packages to version 26.7.2.
GHSA-vwjc-v7x7-cm6g at a Glance
How to Fix GHSA-vwjc-v7x7-cm6g
To remediate this vulnerability, upgrade all affected ArcadeDB dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>com.arcadedb</groupId>
<artifactId>arcadedb-engine</artifactId>
<version>26.7.2</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.arcadedb
How to Check if You Are Affected
To determine whether your Java application is affected by GHSA-vwjc-v7x7-cm6g, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.arcadedb
Analyze the terminal output to locate any version of ArcadeDB in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 26.7.2), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.arcadedb command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In ArcadeDB, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-vwjc-v7x7-cm6g Affected ArcadeDB Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.arcadedb:arcadedb-engine
|
Maven |
< 26.7.2
|
26.7.2
|
References
Frequently Asked Questions
What is GHSA-vwjc-v7x7-cm6g?
Which ArcadeDB versions are affected?
What version fixes GHSA-vwjc-v7x7-cm6g?
Is arcadedb-engine affected?
What CWE is associated with GHSA-vwjc-v7x7-cm6g?
How can I check Maven dependencies for GHSA-vwjc-v7x7-cm6g?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vwjc-v7x7-cm6g",
"modified" : "2026-07-16T20:17:55Z",
"published" : "2026-07-16T20:17:42Z",
"aliases" : [ ],
"summary" : "ArcadeDB: Scripting authorization gate (GHSA-48qw-824m-86pr) bypassed via SQL DEFINE FUNCTION ... LANGUAGE js",
"details" : "The GHSA-48qw-824m-86pr hardening added a checkPermissionsOnDatabase(UPDATE_SECURITY) gate on the polyglot engine (PolyglotQueryEngine.java:112-114,126,176,199), but only there. The SQL route to JavaScript never touches it: DefineFunctionStatement.executeSimple (DefineFunctionStatement.java:37-100), LocalSchema.registerFunctionLibrary, and SQLQueryEngine library-function invocation (SQLQueryEngine.java:198-224) do no scripting-permission check.\n\nExploit: any user authorized for the DB (including a read-only role) runs POST /api/v1/command/<db> {\"language\":\"sql\",\"command\":\"DEFINE FUNCTION x.run \\\"<js>\\\" LANGUAGE js\"} then SELECT x.run(), executing arbitrary JavaScript and defeating the control meant to restrict scripting to security admins. On this path allowedPackages is empty so Java.type host lookup and reflection are blocked, but IOAccess.ALL still permits load(url) SSRF/remote-JS inclusion and unbounded CPU/memory DoS.\n\nFix: gate DefineFunctionStatement.executeSimple, the SQLQueryEngine library-function wrapper (to also cover pre-existing libraries), and DeleteFunctionStatement with UPDATE_SECURITY for js/polyglot languages. Centralize as one assertCanExecuteUserCode(database) invoked by every code-execution surface. Also set IOAccess.NONE / PolyglotAccess.NONE on the Context (GraalPolyglotEngine.java:86,91).",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.arcadedb:arcadedb-engine"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "26.7.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ArcadeData/arcadedb/security/advisories/GHSA-vwjc-v7x7-cm6g"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ArcadeData/arcadedb"
}, {
"type" : "WEB",
"url" : "https://github.com/ArcadeData/arcadedb/releases/tag/26.7.2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-74" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-16T20:17:42Z",
"nvd_published_at" : null
}
}