# Saltcorn @saltcorn/server path traversal in auto-backup download

Source: https://junglewise.ai/threats/saltcorn-saltcorn-server-path-traversal-in-auto-backup-download-ab7ecb1b  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-10-03. Updated: 2026-05-13  
License: CC BY 4.0 with a link back

Severity: low · CVSS 3.1 · Published 2024-10-03

Saltcorn is an open-source platform used to build applications without writing code. A security flaw in the server component allows an administrative user to bypass directory restrictions and download any ZIP file from the underlying server's storage. This could lead to the exposure of sensitive system data or backups that the user should not normally have access to.

Technologies: [@saltcorn/server (npm)](https://junglewise.ai/threats/technologies/saltcorn-server), [Saltcorn](https://junglewise.ai/threats/technologies/saltcorn). Vendors: [npm](https://junglewise.ai/threats/vendors/npm), [Saltcorn](https://junglewise.ai/threats/vendors/saltcorn).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Low severity, with a CVSS score of 3.1, published 3 October 2024.

**Which products and versions are affected?** @saltcorn/server (npm) SEMVER:introduced=0,fixed=1.0.0-beta.14; Saltcorn <= 1.0.0-beta.13.

**Is there a fix for This vulnerability?** Yes. @saltcorn/server (npm): upgrade to 1.0.0-beta.14 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is This vulnerability attacked?** It is attacked over the network, in a software library.

**Am I affected?** Check whether you run @saltcorn/server (npm) or Saltcorn at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- @saltcorn/server (npm): upgrade to 1.0.0-beta.14 or later

  ```sh
  npm install @saltcorn/server@1.0.0-beta.14
  ```


## Technical details

A path traversal vulnerability (CWE-22) exists in the @saltcorn/server package within the auto-backup download route. The application fails to properly sanitize the 'filename' parameter in the '/admin/auto-backup-download/:filename' endpoint before passing it to the 'res.download' API. While the code checks if the filename starts with a specific prefix and ends with '.zip', it does not resolve the path, allowing an attacker to use '../' sequences to escape the intended backup directory. Exploitation requires administrative privileges and the target file must have a .zip extension. The issue is fixed in version 1.0.0-beta.14 by resolving the filename before validation.

## Affected products

- Saltcorn @saltcorn/server <= 1.0.0-beta.13

## Timeline

- 2024-10-03: disclosed
- 2024-10-03: advisory
- 2024-10-03: patched

## References

- [https://github.com/saltcorn/saltcorn/security/advisories/GHSA-277h-px4m-62q8](https://github.com/saltcorn/saltcorn/security/advisories/GHSA-277h-px4m-62q8)
- [https://github.com/saltcorn/saltcorn/commit/024f19a7e079913f62f4a2335ab04116ddb68192](https://github.com/saltcorn/saltcorn/commit/024f19a7e079913f62f4a2335ab04116ddb68192)
- [https://github.com/saltcorn/saltcorn](https://github.com/saltcorn/saltcorn)
- [https://github.com/saltcorn/saltcorn/blob/v1.0.0-beta.13/packages/server/routes/admin.js](https://github.com/saltcorn/saltcorn/blob/v1.0.0-beta.13/packages/server/routes/admin.js)

## Related threats

- [Saltcorn: SQL Injection via Unparameterized Sync Endpoints (maxLoadedId)](https://junglewise.ai/threats/cve-2026-41478-saltcorn-sql-injection-via-unparameterized-sync-endpoints)
- [Saltcorn open redirect in login via backslash bypass](https://junglewise.ai/threats/cve-2026-42259-saltcorn-open-redirect-in-login-via-backslash-bypass)
- [Saltcorn @saltcorn/data SQL injection in jsexprToSQL Literal Handler](https://junglewise.ai/threats/saltcorn-saltcorn-data-sql-injection-in-jsexprtosql-literal-handler-bdaf86bc)
- [Saltcorn path traversal in mobile sync endpoints](https://junglewise.ai/threats/cve-2026-40163-saltcorn-path-traversal-in-mobile-sync-endpoints)
- [Saltcorn reflected XSS and command injection chaining for RCE](https://junglewise.ai/threats/saltcorn-reflected-xss-and-command-injection-chaining-for-rce-91ca3009)
