Browse the exercises, follow student guides, and find teaching materials in one place.
Teach dependency, browser and access-control security with working applications and evidence-based repairs.
CVE Lite Classroom is a free, open-source teaching collection for software engineering, web development, and application-security courses. Students investigate supplied applications, make justified repairs, and demonstrate that the applications still work. Three dependency-security lessons use CVE Lite; a browser-only lesson teaches safe message rendering, and beginner-friendly local-server lessons teach access control, safe configuration and password storage.
Professors receive the applications, lesson plans, worksheets, worked solutions, and grading rubrics-not just a list of commands to turn into a lesson.
Start teaching · Run with Apptainer or Docker · Practical exercises · Exercise catalog · About CVE Lite · Real-world integrations
Prefer an offline overview? Download and extract the repository, then open the root index.html in a browser. GitHub displays its source rather than running it. The offline catalog lists lessons, requirements and starting instructions; no build step is needed.
The classroom container opens a course website at http://127.0.0.1:8000/ and includes Node.js, the package managers and the pinned CVE Lite scanner. You can build and run it from this checkout.
For a prebuilt edition, look for a course release with Apptainer (.sif) files. Its tag also identifies the Docker image at ghcr.io/sonukapoor/cve-lite-classroom:TAG. If the release lists only student-kit ZIPs, use the build instructions above or ask your instructor for the course image.
CVE Lite CLI is an open-source dependency-vulnerability scanner maintained as an OWASP Foundation project. It examines JavaScript and TypeScript projects' dependency lockfiles, checks for known vulnerabilities, and provides remediation guidance. It supports npm, pnpm, Yarn, and Bun workflows and can be used locally or in continuous integration.
For students, it makes a common software-engineering problem tangible: an application can pass its tests and still contain vulnerable dependencies. Fixing that problem requires more than running an update command. Students must interpret findings, understand dependency relationships, consider compatibility, and verify the outcome.
The dependency-security exercises follow that complete workflow:
Inspect → Scan → Investigate → Repair → Test → Rescan → Explain
CVE Lite is integrated into public projects beyond this classroom collection. Examples documented on the public adoption page include:
| Project | Documented integration | Classroom connection |
|---|---|---|
| SolidJS | Added by the framework's creator, Ryan Carniato, in his own commit. Scans every push and pull request to the main branch and publishes the results to GitHub Code Scanning. | See how a widely used framework reports findings to maintainers on every change. |
| Government of British Columbia - nr-waste-plus | A required check on every push and pull request, alongside Trivy and npm audit, with results uploaded to GitHub Code Scanning. | Understand how security checks fit into a project's development pipeline. |
| Valibot and Formisch | Security workflows that run the scan and publish each finding to GitHub Code Scanning. Valibot has about 14 million npm downloads a week (October 2026). | Connect local investigation to automated checks used by open-source maintainers. |
| Réfugiés.info - karfur | The French government's information portal for refugees. A pre-push scan blocks a push while a high or critical vulnerability is present. | Explore when a vulnerability should block a development action. |
These projects use CVE Lite CLI itself. The adoption page links each one to its public evidence and the date it was last verified.
At Polytechnic of Leiria, Portugal, Ricardo Gomes uses CVE Lite CLI in the lab work of the Master's course in Software Quality. The course lecturer confirmed this use in October 2026; see the public academic-use listing.
For professors:
- Runnable applications are supplied for every exercise-no need to create a vulnerable project yourself.
- Teaching plans, instructor walkthroughs, worked solutions, and rubrics support preparation and grading.
- Student-only exports make it easy to distribute an exercise through your learning-management system without bundling answer keys.
- Captured before-and-after reports support discussion and an explicitly labeled analysis-only fallback when live scanning is unavailable.
- The MIT license allows you to adapt and redistribute the materials for your course.
For students:
- Investigate real findings in a small, understandable application.
- Explain why a dependency change addresses a finding rather than merely copying a suggested version.
- Test functionality and rescan after remediation.
- Critique AI-generated recommendations using evidence.
- Distinguish a security-policy failure from a broken or incomplete scan.
- Learn why a chat message can become executable code, then make and test a guided safe-rendering repair in the browser-only lesson.
- Learn why knowing a record ID is not permission, then repair one server-side ownership check in a supplied student portal.
Exercises 01–03 suit students with introductory JavaScript knowledge and basic terminal experience, and supply a small command-line course-registration application. Exercise 04 supplies a browser-only message board and needs no terminal or package installation. Exercise 05 supplies a local Node server and teaches the terminal steps and JavaScript comparison needed for a single ownership-check repair. No prior CVE Lite experience is needed; students do not have to build the applications from scratch.
New to vulnerability records? Start with Exercise 0. Find a CVE, read the OSV response, and decide which package versions are affected before trying the application labs below.
| Exercise | Status | OWASP 2025 | Time after setup | Outcome |
|---|---|---|---|---|
| 00 Read Your First Vulnerability Record | Available | Primer | Not yet estimated | Find a CVE record, read its OSV affected range, and decide whether two package versions are affected. |
| 01 Find, Fix, Verify | Available | A03 | ~60 min; 75–90 with primer | Scan the supplied application, investigate findings, justify dependency changes, test and rescan. |
| 02 AI-Assisted Remediation | Available | A03 | ~30 min after 01; otherwise 45–60 with equivalent knowledge | Ask an assistant for advice (or use the supplied sample), then critique, approve, and verify a repair. |
| 03 CI Security Gates | Available | A03 | ~30 min after 01; otherwise 45–60 with equivalent knowledge | Test three gate outcomes, remediate findings and verify locally; hosted GitHub work is optional and takes extra time. |
| 04 Browser Security Basics | Available | A05 | ~75–90 min | Follow a beginner-friendly guided repair: post messages, observe a harmless XSS demonstration, learn the needed HTML/JS, and verify the fix. No Node/npm/server needed. |
| 05 Broken Access Control | Available | A01 | ~75–90 min | Use a supplied student portal, discover cross-user record access, repair one server-side ownership check and verify allowed/denied requests. Node 22+ required; no package installation. |
| 06 Security Misconfiguration | Available | A02 | 60–75 minutes after setup | Prevent debug settings from exposing internal details in error responses. |
| 07 Cryptographic Failures | Available | A04 | 75–90 minutes after setup | Replace reversible password storage with a supplied hashing helper; verify correct/wrong passwords and fresh salts. Node 22+; no packages. |
| 08 Insecure Design | Available | A06 | 75–90 minutes | Repair an unsafe account-recovery flow and verify account-bound, expiring, single-use tokens. |
| 09 Authentication Failures | Available | A07 | 75–90 min | Revoke a session on logout and verify retained-token replay is rejected while legitimate sessions still work. |
| 10 Software or Data Integrity Failures | Available | A08 | 75–90 min | Reject tampered announcements by verifying a signature against a trusted publisher key. |
| 11 Security Logging and Alerting Failures | Available | A09 | 75–90 min | Record login events without passwords and flag repeated failures for one account within a time window. |
| 12 Mishandling of Exceptional Conditions | Available | A10 | 40–50 min | Report an interrupted dependency scan as incomplete, preserve the findings already collected, and verify both completed outcomes. |
Thirteen exercises are available. Exercise 00 introduces vulnerability records. Exercises 01–12 give worked examples across all ten OWASP Top 10:2025 categories.
Exercises 01–03 include npm, pnpm, Yarn Classic, Yarn Berry and Bun tracks. Choose one, not all five. Each track has its own student app, solution and captured reports. AI and CI reuse the same application concept but include all necessary files independently. Exercise 04 has a standalone browser student app and solution; Exercises 05–12 have self-contained local Node student and solution apps without third-party dependencies.
The dependency lessons address known vulnerable dependencies within OWASP Top 10:2025 A03: Software Supply Chain Failures. The browser lesson addresses XSS within A05: Injection, the ownership lesson addresses A01: Broken Access Control, the debug-settings lesson addresses A02: Security Misconfiguration, and the session-logout lesson addresses A07: Authentication Failures. Each is an example, not complete coverage of its category. See the OWASP exercise roadmap.
In Exercise 12 students build a trustworthy report from fictional scanner data. Exercise 03 shows how CI can use that distinction when a scan ends early.
Each exercise has a solution directory that brings together its runnable reference apps and answer keys:
- Find, Fix, Verify solutions: corrected dependencies, lockfiles, and verification evidence.
- AI-Assisted Remediation solutions: worked critique and an example approved repair.
- CI Security Gates solutions: corrected apps, complete workflows, and gate behavior.
- Browser Security Basics solution: safe plain-text rendering, browser checks, and worked answers.
- Broken Access Control solution: server-side record ownership, allowed/denied access checks, and worked answers.
- Security Misconfiguration solution: disable public diagnostics while preserving safe error reporting and normal functionality.
- Cryptographic Failures solution: replace reversible password storage with salted hashing and verify passwords correctly.
All five package-manager tracks are covered for exercises 01–03. Solutions are public examples, not the only acceptable answers; use student-only exports when withholding answer keys.
For a dependency sequence, teach 01 before 02–03 unless students have equivalent remediation knowledge. Start with the dependency primer, also included in every dependency kit. Exercises 02–03 have their own rubrics and independent app files, but do not introduce all prerequisite concepts from scratch. Exercises 04 and 05 are independent, guided introductions; 04 is a useful first lesson for students new to web development. Times are planning estimates and exclude initial setup. Optional hosted GitHub workflows require additional time.
Browser-only route: download and extract this repository, then open exercises/04-browser-security-basics/student/index.html from your computer in a browser. Follow the student worksheet; edit only student/render.js in a code editor. Viewing the HTML source on GitHub does not run the app. Instructors with Node can export it with node tooling/package-student-kit.mjs 04-browser-security-basics browser ./dist/browser-security; students need no Node installation.
Access-control route: open exercises/05-broken-access-control/student in your editor, open a terminal in that folder and run node server.mjs. Visit http://127.0.0.1:3000 and follow the worksheet. Students edit only authorize.mjs. Node 22+ is required; no npm install. Instructors can export from the repository root with node tooling/package-student-kit.mjs 05-broken-access-control node ./dist/access-control.
Configuration route: open exercises/06-security-misconfiguration/student in your editor and its terminal. Run node server.mjs, visit http://127.0.0.1:3000 and follow the worksheet. Students edit only config.mjs, restart and verify the responses. Node 22+ required; no packages. Stop any other lesson server first. Export from the repository root with node tooling/package-student-kit.mjs 06-security-misconfiguration node ./dist/misconfiguration.
Password-storage route: open exercises/07-cryptographic-failures/student in your editor and its terminal. Run node server.mjs, visit http://127.0.0.1:3000, and follow the worksheet. Students edit two return lines, restart, recreate the fictional account and verify it. Node 22+; no package installation. Stop any other lesson server first. Export with node tooling/package-student-kit.mjs 07-cryptographic-failures node ./dist/password-storage from the repository root.
Dependency-security route (exercises 01–03):
- Download or clone this repository and read the Instructor quick start.
- Choose an exercise and one package manager. Review its instructor walkthrough and rubric.
- Follow Setup, then export a student-only kit:
From the repository root, with Node installed:
node tooling/package-student-kit.mjs 01-find-fix-verify npm ./dist/manual-npmThe destination must not exist. Distribute that folder, not the full repository when withholding answers. The kit contains a runnable app, worksheet, setup, submission template and any student prompts/workflow templates. Instructor solutions and reports stay out. Instructors can separately supply reference reports for the explicitly labeled analysis-only fallback.
- Open the exported kit's
README.md, test the instructions on your teaching environment, and distribute the folder to students.
No paid AI subscription is required. The AI exercise includes a sample response for students to critique. A GitHub account is optional because the security-gate exercise also has a local path.
The student applications intentionally contain security weaknesses. Educational use only; do not deploy them. Exercises 01–03 contain vulnerable dependencies and require no exploitation or live application HTTP requests. Exercise 04 includes a tightly scoped local demonstration that changes a visible marker; follow its lab safety guidance.
For exercises 01–03, package installation and live advisory lookup require internet access. The scanner may require native build tooling. Read the setup instructions and safety guidance before class; use troubleshooting if your environment differs. Exercise 04 runs offline from local files and does not require a scanner.
Reports are real snapshots, not promises about future vulnerability counts. A clean scan does not establish that an application is free of all security risks. Students are assessed on their reasoning and verification, not on reproducing a fixed finding count.
The collection has been locally checked across all five package-manager tracks, with automated tests, browser checks and student-workflow reviews. The verification record documents the tested environments, commands and results.
Before each course offering, follow the maintenance guide to check dependencies, advisory changes, and the selected exercise on your classroom machines.
To run the collection's structural checks and tooling tests:
node --test tooling/*.test.mjs
node tooling/validate-exercises.mjsWant to contribute a fix or teaching material? Read the contributor guide for setup, verification, and the required issue-first pull request workflow.
Found a bug, an unclear instruction, or a setup issue? Have a suggestion for a new exercise? Please open an issue.
For problems, include the exercise, package manager, operating system, relevant tool versions, and steps to reproduce. Remove credentials, personal information, and private student or institutional data from any logs you share.
For exercise suggestions, describe what students should learn, their expected experience level, and how the activity would fit into your course. Feedback from professors and students is welcome, including what worked well and where additional guidance would help.
MIT. Adapt the lessons to your course, retain the license notice, and share improvements. CVE Lite CLI's project documentation is available at owasp.github.io/cve-lite-cli.
