{"answers":{"affected":"2 open source packages ship an affected version, including com.appsmith:interfaces.","exploited":"There is no known exploitation of GHSA-h8cj-hpmg-636v in the wild and no public exploit code.","fix":"Upgrade com.appsmith:interfaces to 1.99 or later.","what":"GHSA-h8cj-hpmg-636v is a SQL injection vulnerability in com.appsmith:interfaces, published on 29 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-h8cj-hpmg-636v and fix it if it is affected.\n\nWhat it is: GHSA-h8cj-hpmg-636v is a SQL injection vulnerability in com.appsmith:interfaces, published on 29 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-h8cj-hpmg-636v in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- com.appsmith:interfaces (Maven): affected all versions; fixed in 1.99\n- com.appsmith:interfaces (Maven): affected all versions; fixed in 1.99\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-h8cj-hpmg-636v/ (Markdown: https://insights.sbomify.com/GHSA-h8cj-hpmg-636v/index.md)","id":"GHSA-h8cj-hpmg-636v","markdown":"https://insights.sbomify.com/GHSA-h8cj-hpmg-636v/index.md","name":"GHSA-h8cj-hpmg-636v","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["data_modify","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Appsmith low-code platform","requires_auth":"low_privilege","summary":"SQL injection in Appsmith's FilterDataService allows attackers to execute arbitrary SQL commands, potentially leading to data loss or exfiltration.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### 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.","ecosystems":["Maven"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"appsmith has SQL Injection in FilterDataService via Unsafe DROP TABLE Execution","id":"GHSA-h8cj-hpmg-636v","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Maven","product":null,"products":[],"type":"sql_injection","year":"2026"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"Maven","fixed":["1.99"],"introduced":["0"],"last_affected":[],"package":"com.appsmith:interfaces","purl":null,"source":"GHSA-h8cj-hpmg-636v"},{"ecosystem":"Maven","fixed":["1.99"],"introduced":["0"],"last_affected":[],"package":"com.appsmith:interfaces","purl":"pkg:maven/com.appsmith/interfaces","source":"GHSA-h8cj-hpmg-636v"}],"products":null,"published":"2026-04-29","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"SQL injection in Appsmith's FilterDataService allows attackers to execute arbitrary SQL commands, potentially leading to data loss or exfiltration.","url":"https://insights.sbomify.com/GHSA-h8cj-hpmg-636v/"}