Intel

AIKIDO-2026-749753

exact-mirror is vulnerable to Code Injection

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 6, 2026
July 6, 2026

59

CVE Score

Medium

Code Injection

Are you affected? Scan for Free

TL;DR

exact-mirror compiles a value-mirroring function from a TypeBox/OpenAPI schema by building JavaScript source and passing it to Function. Schema property names are embedded directly into that generated source, and before the fix non-identifier names were inserted as raw, unescaped string literals via encodeProperty and joinProperty. A property name containing a quote, backtick, or other special character can break out of the literal and inject attacker-controlled JavaScript into the generated function, which executes when the mirror is compiled or invoked. The fix detects safe identifiers with a strict regex and escapes property names with JSON.stringify using bracket access.

How do I fix this?

Upgrade the exact-mirror library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and build mirrors from schemas whose property names come from untrusted input.

Versions

0.0.0 - 1.1.0

Fixed in 1.1.1

Background info

exact-mirror is vulnerable to Code Injection in versions 0.0.0 - 1.1.0.

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