Intel

AIKIDO-2026-400035

fleetbase/core-api is vulnerable to Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 20, 2026
October 20, 2026

45

CVE Score

Medium

Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')

Are you affected? Scan for Free

TL;DR

List, find, create, and update handlers in HasApiModelBehavior pass client-supplied with, expand, count, and with_count values to Eloquent's with(), load(), withCount(), or loadCount() without verifying that each name is a relation; TemplateQuery::execute() likewise forwards its stored, user-editable with value. While resolving an eager load or count, Eloquent invokes $model->newInstance()->{$name}(), so a supplied name can run any public method that requires no arguments, such as saveInstance or dispatch, causing an unintended database write or event dispatch. The fix routes these names through RequestRelations, which permits declared Eloquent relations, eligible Expandable closures, or explicitly $withable names before passing them to Eloquent.

How do I fix this?

Upgrade the fleetbase/core-api library to the patch version.

Who does this affect?

You are affected if you use a version in the vulnerable range and expose resource list, find, create, or update endpoints that accept with, expand, count, or with_count, or allow user-editable template queries to set with.

Versions

1.1.7 - 1.6.68

Fixed in 1.6.69

Background info

fleetbase/core-api is vulnerable to Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') in versions 1.1.7 - 1.6.68.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea