Vulnerabilities/

@saltcorn/data vulnerable to SQL Injection via jsexprToSQL Literal Handler

Severity:
Low

Description

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.

Recommendation

Update the @saltcorn/data package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
@saltcorn/data
Anything's wrong? Let us know Last updated on April 10, 2026