Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @saltcorn/data
  4. ›
  5. GHSA-59xv-588h-2vmm

GHSA-59xv-588h-2vmm: @saltcorn/data vulnerable to SQL Injection via jsexprToSQL Literal Handler

April 10, 2026

The jsexprToSQL() function in Saltcorn converts JavaScript expressions to SQL for use in database constraints. The Literal handler wraps string values in single quotes without escaping embedded single quotes, allowing SQL injection when creating Formula-type table constraints.

References

  • github.com/advisories/GHSA-59xv-588h-2vmm
  • github.com/saltcorn/saltcorn
  • github.com/saltcorn/saltcorn/security/advisories/GHSA-59xv-588h-2vmm

Code Behaviors & Features

Detect and mitigate GHSA-59xv-588h-2vmm 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 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

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

Learn more about CVSS

Weakness

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

Source file

npm/@saltcorn/data/GHSA-59xv-588h-2vmm.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:18:17 +0000.