CVE-2026-40163 Details
Description
Saltcorn is an extensible, open source, no-code database application builder. Prior to 1.4.5, 1.5.5, and 1.6.0-beta.4, the POST /sync/offline_changes endpoint allows an unauthenticated attacker to create arbitrary directories and write a changes.json file with attacker-controlled JSON content anywhere on the server filesystem. The GET /sync/upload_finished endpoint allows an unauthenticated attacker to list arbitrary directory contents and read specific JSON files. This vulnerability is fixed in 1.4.5, 1.5.5, and 1.6.0-beta.4.
A path traversal vulnerability has been identified in Saltcorn, an open-source no-code database application builder, affecting versions prior to 1.4.5, 1.5.5, and 1.6.0-beta.4. The vulnerability exists in two unauthenticated sync endpoints: 'POST /sync/offline_changes' and 'GET /sync/upload_finished'. The 'POST' endpoint allows attackers to create arbitrary directories and write a 'changes.json' file with custom JSON content anywhere on the server filesystem. The 'GET' endpoint enables attackers to list directory contents and read specific JSON files from any directory.
The vulnerability can be remediated by applying the 'File.normalise_in_base()' function to both affected endpoints, similar to the existing implementation in the 'clean_sync_dir' endpoint. Additionally, 'loggedIn' middleware should be added to endpoints that modify server state.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/saltcorn/saltcorn/security/advisories/GHSA-32pv-mpqg-h292 | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| saltcorn saltcorn | < 1.4.5 >= 1.5.0, < 1.5.5 1.6.0 alpha0 1.6.0 alpha1 1.6.0 alpha10 1.6.0 alpha11 1.6.0 alpha12 1.6.0 alpha13 1.6.0 alpha14 1.6.0 alpha15 1.6.0 alpha16 1.6.0 alpha17 1.6.0 alpha2 1.6.0 alpha3 1.6.0 alpha4 1.6.0 alpha5 1.6.0 alpha6 1.6.0 alpha7 1.6.0 alpha8 1.6.0 alpha9 1.6.0 beta1 1.6.0 beta2 1.6.0 beta3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 27, 2026 | Reanalysis | [email protected] |
| Apr 27, 2026 | Initial Analysis | [email protected] |
| Apr 10, 2026 | New CVE Received | [email protected] |