Description
Vulnerable Code Snippets is a collection of short code examples, each containing one or more security vulnerabilities, for practising code analysis in a safe environment. YesWehack publishes a new snippet on its Twitter account every Friday, and the repository keeps a table of all the posts with the vulnerability types and a short note on the flaw. The examples cover SQL injection, cross-site scripting, DOM XSS, SSRF, broken authorisation, server-side template injection, CSRF, CORS misconfiguration, clickjacking, path traversal, unrestricted file upload, insecure deserialisation, open redirects, IDOR, denial of service and weak password recovery, among others. Each snippet is meant for learners of all levels. Snippets come with a Docker setup that isolates the vulnerable code from your host system.…
Highlights
- Weekly vulnerable snippets
- Covers common web vulnerability classes
- Dockerised isolation for each snippet
- Table of all posts with the flaw
- Suitable for all skill levels
Ratings & Reviews
No ratings yet
Be the first to rate Vulnerable Code Snippets.
People also visit

find-security-vulnerabilities-in-code
Find security vulnerabilities in a codebase or repository with Strix
openai/security-best-practices
Review code for language-specific security vulnerabilities
Vulnapi
API Security Vulnerability Scanner designed to help you secure your APIs
Vulnerable Code Snippets FAQ
What is this repository for?
Practising code analysis on short snippets that each contain a security vulnerability.
Is it safe to run?
The README says the code is deliberately vulnerable. Each snippet has a Docker setup that isolates it from your host, and it should be run only in a secure environment.
How often are new snippets added?
YesWehack says it posts a new vulnerable code snippet on Twitter (X) every Friday.
Which vulnerabilities are covered?
SQL injection, XSS, SSRF, broken authorisation, SSTI, CSRF, CORS, path traversal, insecure deserialisation, IDOR and others, listed in a table.
Can I suggest a snippet?
Yes. The README asks you to open a new issue describing your idea.
What are the best Vulnerable Code Snippets alternatives?
Popular alternatives to Vulnerable Code Snippets include Codesnippet, Kiuwan Code Security and Vulnapi. See all Vulnerable Code Snippets alternatives










