exact-mirror is vulnerable to Code Injection
59
CVE Score
Medium
Code Injection
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.
Upgrade the exact-mirror library to the patch version.
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.
0.0.0 - 1.1.0
Fixed in 1.1.1exact-mirror is vulnerable to Code Injection in versions 0.0.0 - 1.1.0.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.