@feathersjs/adapter-commons is vulnerable to Code Injection
98
Critical Risk
The validateQueryProperty allow-list check in the common adapter query sanitizer does not recurse into array values, and object-valued $or, $and, $select, and $sort filters skip validation. Wrapping a sub-query in an extra array or nesting operators in these filters lets disallowed operators such as $where or $function bypass the operator allow-list and reach the underlying adapter. On a service reachable by untrusted queries this becomes operator injection, and on the in-memory adapter a $where string is compiled with new Function, giving remote code execution from a single unauthenticated request. The fix recurses into arrays and validates the object-valued filter operators.
You are affected if you are using a version that falls within the vulnerable range and you expose a service that accepts untrusted query input.
@feathersjs/adapter-commons is vulnerable to Code Injection in versions 5.0.0 - 5.0.48.
Upgrade the @feathersjs/adapter-commons 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