Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @saltcorn/server
  4. ›
  5. GHSA-jp74-mfrx-3qvh

GHSA-jp74-mfrx-3qvh: Saltcorn: SQL Injection via Unparameterized Sync Endpoints (maxLoadedId)

April 16, 2026

Saltcorn’s mobile-sync routes (POST /sync/load_changes and POST /sync/deletes) interpolate user-controlled values directly into SQL template literals without parameterization, type-casting, or sanitization. Any authenticated user (role_id ≥ 80, the default “user” role) who has read access to at least one table can inject arbitrary SQL, exfiltrate the entire database including admin password hashes, enumerate all table schemas, and—on a PostgreSQL-backed instance—execute write or DDL operations.

References

  • github.com/advisories/GHSA-jp74-mfrx-3qvh
  • github.com/saltcorn/saltcorn
  • github.com/saltcorn/saltcorn/security/advisories/GHSA-jp74-mfrx-3qvh

Code Behaviors & Features

Detect and mitigate GHSA-jp74-mfrx-3qvh with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.4.6, all versions starting from 1.5.0-beta.0 before 1.5.6, all versions starting from 1.6.0-alpha.0 before 1.6.0-beta.5

Fixed versions

  • 1.4.6
  • 1.5.6
  • 1.6.0-beta.5

Solution

Upgrade to versions 1.4.6, 1.5.6, 1.6.0-beta.5 or above.

Impact 9.9 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

npm/@saltcorn/server/GHSA-jp74-mfrx-3qvh.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:59 +0000.