Intel

AIKIDO-2026-772874

@feathersjs/adapter-commons is vulnerable to Code Injection

Code InjectionGHSA-6qm5-r3g8-qgqh Published Aug 24, 2026

98

Critical Risk

This Affects:

JS@feathersjs/adapter-commons
5.0.0 - 5.0.48
Fixed in 5.0.49
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

@feathersjs/adapter-commons is vulnerable to Code Injection in versions 5.0.0 - 5.0.48.

How to fix this

Upgrade the @feathersjs/adapter-commons library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform