Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @saltcorn/server
  4. ›
  5. CVE-2026-40163

CVE-2026-40163: Saltcorn has an Unauthenticated Path Traversal in sync endpoints, allowing arbitrary file write and directory read

April 10, 2026

Two unauthenticated path traversal vulnerabilities exist in Saltcorn’s mobile sync endpoints. 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.

The safe path validation function File.normalise_in_base() exists in the codebase and is correctly used by the clean_sync_dir endpoint in the same file (fix for GHSA-43f3-h63w-p6f6), but was not applied to these two endpoints.

References

  • github.com/advisories/GHSA-32pv-mpqg-h292
  • github.com/saltcorn/saltcorn
  • github.com/saltcorn/saltcorn/security/advisories/GHSA-32pv-mpqg-h292
  • nvd.nist.gov/vuln/detail/CVE-2026-40163

Code Behaviors & Features

Detect and mitigate CVE-2026-40163 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.4.5, all versions starting from 1.5.0-beta.0 before 1.5.5, all versions starting from 1.6.0-alpha.0 before 1.6.0-beta.4

Fixed versions

  • 1.4.5
  • 1.5.5
  • 1.6.0-beta.4

Solution

Upgrade to versions 1.4.5, 1.5.5, 1.6.0-beta.4 or above.

Impact 8.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/@saltcorn/server/CVE-2026-40163.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 17 Apr 2026 00:18:41 +0000.