ash is vulnerable to Improper Neutralization of Special Elements in Data Query Logic
21
Low Risk
When a belongs_to relationship is managed with on_lookup: :relate, the client-supplied lookup value reaches the query filter without being cast to the attribute type. A nested map submitted where a scalar is expected is interpreted as a filter predicate, so an attacker can match a record without knowing its key, and recover that key from the response. The fix casts the lookup value to the attribute type and applies a single-row limit.
You are affected if you are using a version that falls within the vulnerable range and you manage a belongs_to relationship with on_lookup: :relate where the lookup value comes from user-controlled input.
ash is vulnerable to Improper Neutralization of Special Elements in Data Query Logic in versions 1.53.0 - 3.31.0.
Upgrade the ash 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