ash_sql is vulnerable to Improper Input Validation
21
Low Risk
The string_trim/1 expression in lib/expr.ex compiles to a Postgres REGEXP_REPLACE call intended to strip leading and trailing whitespace. The generated SQL treats \s as a literal space rather than a regex whitespace class, so only ASCII space characters are removed while tabs, newlines, carriage returns, and form feeds survive. Applications that rely on string_trim/1 for trimmed-uniqueness or trimmed-equality checks can be bypassed by submitting values padded with non-space whitespace, which the database treats as distinct from the trimmed in-memory value. The fix generates a pattern that removes all whitespace to match Elixir's String.trim/1.
You are affected if you are using a version that falls within the vulnerable range and you rely on the string_trim/1 expression for uniqueness, equality, or validation checks.
ash_sql is vulnerable to Improper Input Validation in versions 0.0.1 - 0.7.0.
Upgrade the ash_sql library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.