The archive/CVE-2026-44680
mikro-ormDisclosed 2026

CVE-2026-44680:mikro-orm: Query injection in mikro-orm QueryBuilderHelper

A reconstruction of the flaw, and the evidence path Lachesis follows to make it visible.

Historical recordv6.6.13 (last-vulnerable)
WeaknessCWE-89 · query injection in mikro-orm QueryBuilderHelper
ImpactA query injection in mikro-orm querybuilderhelper in mikro-orm, reachable from attacker-controlled input.
Read the reconstruction
01What happened

query injection in mikro-orm QueryBuilderHelper (condition/identifier processing) (QueryBuilderHelper.ts): request-derived values in a database query must be.

That is the shape of the failure. The rest of this case file follows the evidence behind it.

Separate the record from the run

What was known.
What Lachesis established.

01Historical record

Known before Lachesis ran

The CVE and vulnerable release were selected from public history. We are not claiming novel discovery.

CVE
CVE-2026-44680
Vulnerable target
v6.6.13 (last-vulnerable) · vulnerable
Prior knowledge
CVE-2026-44680 · v6.6.13 (last-vulnerable) is vulnerable
then
02Lachesis run
Verified captured run

Guided historical reconstruction

The experiment graph was built around the last-vulnerable release (v6.6.13), scoped to the mikro-orm package's source subtree, enriched, then enumerated BLIND over the whole constructor registry (no family hard-coded, no target line seeded). Build 78s under the 300s pass cap, bounded memory. The census below is the enumerator's own verbatim output; the real-sink note is the advisory reading, kept separate from tool output.

Seeded inputs
None
Run timestamp
2026-09-03T00:00:00Z
Evidence artifact
cve-2026-44680.kuzu (built from mikro-orm v6.6.13, scoped to the mikro-orm package's source subtree; graph + sidecars deleted after capture)

The commands and outputs below come from this recorded Lachesis run.

The reconstruction, in one frame

What Lachesis reconstructed.

One historical repository. Four captured queries. A complete source-to-sink argument.

Lachesis Casefiles · Unbound ComputeVerified runCVE-2026-44680
query injection in mikro-orm QueryBuilderHelper (condition/identifier processing) (QueryBuilderHelper.ts).
01Sourceattacker-controlled input
02Sink// see real_sink_note
03Missing guard// see real_sink_note
$ lachesis sources_of → reaches → guard_dominance
mikro-orm · v6.6.13 (last-vulnerable) · vulnerableunboundcompute.com
This was known history. Your code is not.

Lachesis follows the same evidence path through unfamiliar repositories.

The Lachesis reconstruction

Here is how the path becomes visible.

These are the recorded questions Lachesis asked of the historical vulnerable code, followed by the raw result and source location each query returned.

Repositorymikro-orm
Revisionv6.6.13 (last-vulnerable) · vulnerable
EngineLachesis

Captured runA real replay of Lachesis over the graph built for this case (build 78s under the pass cap, bounded memory). Every census value is verbatim captured tool output; the graph was released immediately after capture.

01 · candidates01 / 03
Lachesis ran
candidates --constructor_id injection.query.escaping --detail full

The dangerous operation surfaces as a candidate

class-matched candidate surfaced in a sibling file, not in QueryBuilderHelper.ts

Captured resultCaptured · candidates
raw captured outputcandidates
injection.query.escaping candidate at SchemaHelper.ts:219 (id obl_0b6c9f0405f969412a70)
SchemaHelper.tsline 219
Code location returned for this evidence step.
The repair

A small line with a large consequence.

QueryBuilderHelper builds WHERE/identifier clauses from operator/field input; a crafted key or operator escapes the intended parameterization and is concatenated into the SQL, letting request-derived content alter the query -- SQL injection.

Before
// see real_sink_note
After the patch
// the fixed release validates/parameterizes the identifier and operator handling so a crafted key cannot inject SQL.
Sources & further reading

The original record.

Read the historical advisory and vulnerability record behind this reconstruction.

Open the Lachesis quickstart