Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Arbitrary Code Injection vulnerabilities in an interactive lesson.
Start learningUpgrade typeorm to version 0.3.31, 1.1.0 or higher.
typeorm is an ORM that can run in NodeJS, Browser, Cordova, PhoneGap, Ionic, React Native, NativeScript, Expo, and Electron platforms and can be used with TypeScript and JavaScript (ES5, ES6, ES7, ES8).
Affected versions of this package are vulnerable to Arbitrary Code Injection in the migration:generate. An attacker can execute arbitrary JavaScript code on the host system by injecting specially crafted schema metadata, such as column comments or default values containing ${...} expressions, which are then embedded unescaped into generated migration files and evaluated when the migration is loaded.