The vulnerability is a Ruby code-injection / improper output-escaping bug (CWE-94/CWE-116) in Elo's Ruby backend, src/compilers/ruby.ts, at commit 749af7b, fixed in 1.0.1 by commit 51b869963fbe445c18328714a7ccfbd76b21ba38 (bundled into the release commit d2a89a8db76a244eb740687524a7e8529b7554b5).
Root cause: the Ruby emitter writes user-controlled text into Ruby double-quoted string literals without escaping the # character. Ruby treats # as the start of interpolation sequences (#{expr}, #@ivar, #@@cvar, #$gvar), so any Elo string literal or subtype-constraint label containing e.g. #{ id } is emitted verbatim and evaluated as Ruby — and via backticks executes shell commands — when the generated Ruby runs.
Two emission sinks exist, both in module-level functions:
emitRuby — the case 'string_literal' branch escaped \, " and control chars but not #. The patch replaced the inline escape chain with a call to the new escapeRubyDQ() helper, which adds .replace(/#/g, '\\#').
emitTypeExprParser — the case 'subtype_constraint' branch built return p_fail(p, "${errorMsg}") unless (...) with no escaping at all. The patch wraps errorMsg in escapeRubyDQ(errorMsg).
The new escapeRubyDQ function and the added tests/fixtures are part of the fix, not vulnerable code. The wrapper emitRubyWithHelpers merely resets the var counter and delegates to emitRuby, so the exploitable logic lives in emitRuby and emitTypeExprParser.
For a Node.js runtime profiler the two functions appear as emitRuby and emitTypeExprParser (module-level functions, no class prefix).