Vulnerabilities in pkg:maven/com.appsmith/interfaces

PACKAGE
Advisory Summary

GHSA-h8cj-hpmg-636v is a HIGH (CVSS 7.2) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Interfaces libraries in the Maven ecosystem. The issue involves appsmith has sql injection in filterdataservice via unsafe drop table execution. Remediation is available by upgrading affected packages to version 1.99.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/com.appsmith/interfaces

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/com.appsmith/interfaces. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-h8cj-hpmg-636v - HIGH appsmith has SQL Injection in FilterDataService via Unsafe DROP TABLE Execution

GHSA-h8cj-hpmg-636v at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-h8cj-hpmg-636v
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product Interfaces
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix GHSA-h8cj-hpmg-636v

To remediate this vulnerability, upgrade all affected Interfaces dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

com.appsmith:interfaces fixed: 1.99
<dependency>
    <groupId>com.appsmith</groupId>
    <artifactId>interfaces</artifactId>
    <version>1.99</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=com.appsmith

How to Check if You Are Affected

To determine whether your Java application is affected by GHSA-h8cj-hpmg-636v, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.appsmith

Analyze the terminal output to locate any version of Interfaces in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.99), your application is affected.

Note: The mvn dependency:tree -Dincludes=com.appsmith 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-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Interfaces, 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

### Summary A SQL injection vulnerability exists in `FilterDataServiceCE.java` where the `dropTable` method constructs a SQL `DROP TABLE` statement using string concatenation with the table name. If the table name is derived from user input, this allows for arbitrary SQL command execution. ### Details The vulnerability is located in `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/services/ce/FilterDataServiceCE.java`. Line 627 in `dropTable` method: ```java public void dropTable(String tableName) { String dropTableQuery = "DROP TABLE " + tableName + ";"; executeDbQuery(dropTableQuery); } ``` The `tableName` argument is concatenated directly into the SQL string without validation or escaping. ### PoC If `dropTable` is exposed to user input (e.g., via a utility API that accepts a table name to clean up), an attacker could provide a value like: `valid_table; DROP TABLE users; --` The resulting query would be: `DROP TABLE valid_table; DROP TABLE users; --;` This would delete the intended table and then delete the `users` table (or execute any other injected SQL). ### Impact * **Type:** SQL Injection * **Impact:** Data Loss (Drop Table), potentially Data Exfiltration or Modification depending on database permissions. * **Who is impacted:** Appsmith server instances.

GHSA-h8cj-hpmg-636v Affected Interfaces Versions

1 component(s)
Fixed Versions:
1.99
Product / Package Ecosystem Affected Versions Fixed Version
com.appsmith:interfaces
Maven
< 1.99
1.99

References

Frequently Asked Questions

What is GHSA-h8cj-hpmg-636v?
GHSA-h8cj-hpmg-636v is a security vulnerability in Interfaces involving appsmith has SQL Injection in FilterDataService via Unsafe DROP TABLE Execution under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Interfaces versions are affected?
Affected versions include releases prior to 1.99 across affected packages: com.appsmith:interfaces.
What version fixes GHSA-h8cj-hpmg-636v?
Upgrading to 1.99 (or the latest patched release for your respective branch) resolves the vulnerability.
Is interfaces affected?
Yes, com.appsmith:interfaces is affected in releases prior to 1.99. Upgrade your dependency to 1.99 or later.
What is the CVSS score of GHSA-h8cj-hpmg-636v?
GHSA-h8cj-hpmg-636v has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-h8cj-hpmg-636v?
GHSA-h8cj-hpmg-636v is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.).
How can I check Maven dependencies for GHSA-h8cj-hpmg-636v?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.appsmith'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-h8cj-hpmg-636v",
  "modified" : "2026-04-29T20:59:45Z",
  "published" : "2026-04-29T20:59:45Z",
  "aliases" : [ ],
  "summary" : "appsmith has SQL Injection in FilterDataService via Unsafe DROP TABLE Execution",
  "details" : "### Summary\nA SQL injection vulnerability exists in `FilterDataServiceCE.java` where the `dropTable` method constructs a SQL `DROP TABLE` statement using string concatenation with the table name. If the table name is derived from user input, this allows for arbitrary SQL command execution.\n\n### Details\nThe vulnerability is located in `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/services/ce/FilterDataServiceCE.java`.\n\nLine 627 in `dropTable` method:\n```java\npublic void dropTable(String tableName) {\n    String dropTableQuery = \"DROP TABLE \" + tableName + \";\";\n    executeDbQuery(dropTableQuery);\n}\n```\n\nThe `tableName` argument is concatenated directly into the SQL string without validation or escaping.\n\n### PoC\nIf `dropTable` is exposed to user input (e.g., via a utility API that accepts a table name to clean up), an attacker could provide a value like:\n`valid_table; DROP TABLE users; --`\n\nThe resulting query would be:\n`DROP TABLE valid_table; DROP TABLE users; --;`\n\nThis would delete the intended table and then delete the `users` table (or execute any other injected SQL).\n\n### Impact\n*   **Type:** SQL Injection\n*   **Impact:** Data Loss (Drop Table), potentially Data Exfiltration or Modification depending on database permissions.\n*   **Who is impacted:** Appsmith server instances.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.appsmith:interfaces"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.99"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.98"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/appsmithorg/appsmith/security/advisories/GHSA-h8cj-hpmg-636v"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/appsmithorg/appsmith/commit/c8023ba4b3b54204ff3309c9e5c33664ad15ba32"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/appsmithorg/appsmith"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-89" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-29T20:59:45Z",
    "nvd_published_at" : null
  }
}