Skip to content
Open dashboard (opens in a new tab)

Resources

JavaScript example applications

Two Node.js applications. Before you start, see Before you start.

Terminal window
git clone https://github.com/vulnerable-apps/vuln_node_express
cd vuln_node_express
# Start the application
docker compose up -d
# Create a web application and scan
APP=vuln-node-express
nightvision target create $APP http://localhost:3000 --type web
nightvision scan $APP
  • What it is: a modern single-page application with an Express API, and a common benchmark for web scanners.
  • Source: github.com/juice-shop/juice-shop
  • Login: username admin@juice-sh.op, password admin123.
Terminal window
git clone https://github.com/juice-shop/juice-shop.git --depth=1
cd juice-shop
# Start the application from the published image
docker run --rm -d -p 3000:3000 bkimminich/juice-shop
APP=juice-shop
URL=http://localhost:3000
# Create an API application and build its specification from the code
nightvision target create $APP $URL --type api
nightvision openapi extract . --target $APP --lang js
# Record the login: admin@juice-sh.op / admin123
nightvision auth playwright create $APP $URL
# Scan, signed in
nightvision scan $APP --auth $APP

Both examples use port 3000. Stop one before you start the other.

For the frameworks Source intelligence reads in JavaScript and TypeScript, see JavaScript frameworks.