misc 0 0 0

VIGNESHWARAN04/Vulnerable_Programming_Dataset

published by @VIGNESHWARAN04

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
141
Last 30 days
17
Likes
-
Size
261 KB
Created on HF
2026-05-23
Age
5 months ago

Description

Vulnerable Programming Dataset

Overview

The Vulnerable Programming Dataset is a comprehensive collection of 550 unique code vulnerabilities across 10 programming languages: Python, JavaScript, PHP, Java, Ruby, Go, TypeScript, C++, SQL, and C. Designed for cybersecurity professionals, red teamers, pentesters, and developers, this dataset highlights unconventional vulnerabilities such as insecure interprocess communication, misconfigured rate limiting, insecure dependency pinning, and logic… See the full description on the dataset page: https://huggingface.co/datasets/VIGNESHWARAN04/Vulnerable_Programming_Dataset.

Tags

task_categories:text-classificationtask_categories:question-answeringlanguage:enlicense:mitsize_categories:n<1Kregion:ussecuritycodes

README current version from Hugging Face


license: mit
task_categories:

  • text-classification
  • question-answering
    language:
  • en
    tags:
  • security
  • codes
    pretty_name: sunny thakur
    size_categories:
  • n<1K

Vulnerable Programming Dataset
Overview
The Vulnerable Programming Dataset is a comprehensive collection of 550 unique code vulnerabilities across 10 programming languages: Python, JavaScript, PHP, Java, Ruby, Go, TypeScript, C++, SQL, and C. Designed for cybersecurity professionals, red teamers, pentesters, and developers, this dataset highlights unconventional vulnerabilities such as insecure interprocess communication, misconfigured rate limiting, insecure dependency pinning, and logic flaws. Each entry provides a code snippet, description, and references to OWASP Top 10 or CWE for further study.
This dataset serves as an educational and testing resource to understand, identify, and mitigate security flaws in software development and penetration testing scenarios.
Dataset Structure
The dataset is provided in JSON format (vulnerabilities.json) with the following schema for each entry:

id: Unique identifier for the vulnerability (1–550).
language: Programming language (e.g., Python, JavaScript, PHP).
vulnerability: Name of the vulnerability (e.g., "Insecure Dynamic Signal Registration").
description: Brief explanation of the vulnerability and its risks.
code: Code snippet demonstrating the vulnerability.
references: Links to OWASP Top 10, CWE, or language-specific security guidelines.
Example entry:
{
  "id": 1,
  "language": "Python",
  "vulnerability": "Insecure Dynamic Signal Registration",
  "description": "Registering signal handlers with unvalidated callbacks.",
  "code": "import signal\ndef register_signal(sig, callback):\n    signal.signal(sig, callback)",
  "references": [
    "CWE-479: https://cwe.mitre.org/data/definitions/479.html"
  ]
}

Usage
This dataset can be used for:

Education: Learn about common and unconventional vulnerabilities in various programming languages.
Penetration Testing: Simulate and test vulnerable code in controlled environments.
Secure Coding Training: Understand anti-patterns to avoid in software development.
Tool Development: Build or enhance static analysis tools, linters, or security scanners.

Explore the Dataset:Open vulnerabilities.json to review the entries or use a JSON parser to filter by language or vulnerability type.
Analyze Vulnerabilities:Use the provided code snippets in a sandboxed environment to study their behavior and test mitigation strategies.
Integrate with Tools:Import the JSON data into your security tools for automated analysis or training purposes.

Note: Always test code in a secure, isolated environment to prevent unintended consequences.
Contribution Guidelines
We welcome contributions to expand or improve the dataset. To contribute:

Fork the repository.
Add new vulnerabilities or enhance existing entries, ensuring no overlap with current entries (1–550).
Follow the existing JSON schema and include references to OWASP, CWE, or reputable sources.
Submit a pull request with a clear description of your changes.

Please adhere to the following:

Ensure code snippets are minimal and reproducible.
Provide accurate and concise descriptions.
Cite authoritative references for each vulnerability.

License
This dataset is licensed under the MIT License. You are free to use, modify, and distribute the dataset, provided you include the original license and attribution.
Contact
For questions, suggestions, or issues, please open an issue on the GitHub repository or contact the maintainers at [email protected].
Acknowledgments
This dataset was created to advance cybersecurity education and secure coding practices. Special thanks to the open-source community, OWASP, and CWE for their invaluable resources.

Disclaimer: This dataset is for educational and testing purposes only. Do not use the provided code in production environments, as it contains intentional vulnerabilities that could compromise system security.

README history 1 revision

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.

  1. 2026-05-23Duplicate from darkknight25/Vulnerable_Programming_Dataset7c39ff13.9 KB
    Loading...

Used by abliterated models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.

Related datasets same stage · misc

Read further

Metadata

License
mit

Repository

Download the dataset

0

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("VIGNESHWARAN04/Vulnerable_Programming_Dataset")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="VIGNESHWARAN04/Vulnerable_Programming_Dataset", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/VIGNESHWARAN04/Vulnerable_Programming_Dataset
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration