This is a sample Node.js repository created for testing purposes. It includes dependencies with known security vulnerabilities and some code that may trigger CodeQL alerts.
- express: 4.16.0 (has known CVEs)
- lodash: 4.17.4 (has CVE-2019-10744)
- minimist: 1.2.0 (has CVE-2020-7598)
- Command injection in
/execroute - Code injection via
evalin/evalroute
- Install dependencies:
npm install - Start the server:
npm start - Visit
http://localhost:3000/exec?cmd=ls(dangerous!) - Visit
http://localhost:3000/eval?code=1+1
Warning: This code is intentionally vulnerable. Do not use in production.