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.
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.
What was known.
What Lachesis established.
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
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.
What Lachesis reconstructed.
One historical repository. Four captured queries. A complete source-to-sink argument.
Lachesis follows the same evidence path through unfamiliar repositories.
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.
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.
The dangerous operation surfaces as a candidate
class-matched candidate surfaced in a sibling file, not in QueryBuilderHelper.ts
injection.query.escaping candidate at SchemaHelper.ts:219 (id obl_0b6c9f0405f969412a70)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.
// see real_sink_note
// the fixed release validates/parameterizes the identifier and operator handling so a crafted key cannot inject SQL.
The original record.
Read the historical advisory and vulnerability record behind this reconstruction.